1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00
haml--haml/lib/sass/script/bool.rb

19 lines
392 B
Ruby
Raw Normal View History

require 'sass/script/literal'
2008-08-09 00:17:58 -04:00
module Sass::Script
# 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"
2008-08-09 00:17:58 -04:00
def to_s
@value.to_s
end
alias_method :to_sass, :to_s
2008-08-09 00:17:58 -04:00
end
end