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

18 lines
403 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(opts = {})
@value.to_s
end
alias_method :to_sass, :to_s
end
end