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
2009-04-24 19:36:14 -07:00

17 lines
359 B
Ruby

require 'sass/script/literal'
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"
def to_s
@value.to_s
end
end
end