Sha256: a4a748f24088081d0f1c8032165e3bb2c2aed5163d5c4d06adeaaf06a6d36fba

Contents?: true

Size: 403 Bytes

Versions: 781

Compression:

Stored size: 403 Bytes

Contents

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

Version data entries

781 entries across 494 versions & 19 rubygems

Version Path
haml-edge-2.3.187 lib/sass/script/bool.rb