All Downloads are FREE. Search and download functionalities are using the official Maven repository.

haml-3.0.25.lib.sass.script.bool.rb Maven / Gradle / Ivy

The newest version!
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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy