mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
17 lines
359 B
Ruby
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
|