/scalate-jruby/src/main/resources/haml-3.0.25/lib/sass/script/bool.rb
http://github.com/scalate/scalate · Ruby · 18 lines · 11 code · 2 blank · 5 comment · 0 complexity · 91f40c3ce2fe869475286f66e90399a0 MD5 · raw file
- 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