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.206 lib/sass/script/bool.rb
haml-edge-2.3.205 lib/sass/script/bool.rb
haml-edge-2.3.204 lib/sass/script/bool.rb
haml-3.0.0.beta.2 lib/sass/script/bool.rb
haml-edge-2.3.203 lib/sass/script/bool.rb
haml-edge-2.3.202 lib/sass/script/bool.rb
haml-edge-2.3.201 lib/sass/script/bool.rb
haml-edge-2.3.200 lib/sass/script/bool.rb
haml-edge-2.3.199 lib/sass/script/bool.rb
haml-edge-2.3.198 lib/sass/script/bool.rb
haml-edge-2.3.197 lib/sass/script/bool.rb
haml-edge-2.3.196 lib/sass/script/bool.rb
haml-edge-2.3.195 lib/sass/script/bool.rb
haml-edge-2.3.194 lib/sass/script/bool.rb
haml-edge-2.3.193 lib/sass/script/bool.rb
haml-edge-2.3.192 lib/sass/script/bool.rb
haml-edge-2.3.191 lib/sass/script/bool.rb
haml-edge-2.3.190 lib/sass/script/bool.rb
haml-edge-2.3.189 lib/sass/script/bool.rb
haml-edge-2.3.188 lib/sass/script/bool.rb