mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
[Sass] Convert Sass::Script::Bool docs to YARD.
This commit is contained in:
parent
4748a2ee54
commit
b2ab6f75db
1 changed files with 9 additions and 5 deletions
|
@ -1,13 +1,17 @@
|
|||
require 'sass/script/literal'
|
||||
|
||||
module Sass::Script
|
||||
class Bool < Literal # :nodoc:
|
||||
# A SassScript object representing a boolean (true or false) value.
|
||||
class Bool < Literal
|
||||
# The Ruby value of the boolean.
|
||||
#
|
||||
# @return [Boolean]
|
||||
attr_reader :value
|
||||
alias_method :to_bool, :value
|
||||
|
||||
# @return [String] "true" or "false"
|
||||
def to_s
|
||||
@value.to_s
|
||||
end
|
||||
|
||||
def to_bool
|
||||
@value
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue