Sha256: ddd7834ab238ecd96fcff832128fe3a93db21d6a223c37a156193226264a3efd

Contents?: true

Size: 392 Bytes

Versions: 34

Compression:

Stored size: 392 Bytes

Contents

require 'sass/constant/literal'

module Sass::Constant # :nodoc:
  class String < Literal # :nodoc:

    def parse(value)
      @value = value
    end

    def plus(other)
      Sass::Constant::String.from_value(self.to_s + other.to_s)
    end

    def funcall(other)
      Sass::Constant::String.from_value("#{self.to_s}(#{other.to_s})")
    end

    def to_s
      @value
    end
  end
end

Version data entries

34 entries across 34 versions & 5 rubygems

Version Path
radiantcms-couchrest_model-0.2.4 vendor/plugins/haml/lib/sass/constant/string.rb
radiantcms-couchrest_model-0.2.2 vendor/plugins/haml/lib/sass/constant/string.rb
radiantcms-couchrest_model-0.2.1 vendor/plugins/haml/lib/sass/constant/string.rb
radiantcms-couchrest_model-0.2 vendor/plugins/haml/lib/sass/constant/string.rb
radiantcms-couchrest_model-0.1.9 vendor/plugins/haml/lib/sass/constant/string.rb
radiantcms-couchrest_model-0.1.8 vendor/plugins/haml/lib/sass/constant/string.rb
radiantcms-couchrest_model-0.1.7 vendor/plugins/haml/lib/sass/constant/string.rb
radiantcms-couchrest_model-0.1.6 vendor/plugins/haml/lib/sass/constant/string.rb
radiantcms-couchrest_model-0.1.5 vendor/plugins/haml/lib/sass/constant/string.rb
radiant-0.7.2 vendor/plugins/haml/lib/sass/constant/string.rb
radiant-0.8.2 vendor/plugins/haml/lib/sass/constant/string.rb
radiant-0.9.0.rc2 vendor/plugins/haml/lib/sass/constant/string.rb
radiant-rc-0.9.0 vendor/plugins/haml/lib/sass/constant/string.rb
radiant-0.8.1 vendor/plugins/haml/lib/sass/constant/string.rb
haml-2.0.10 lib/sass/constant/string.rb
haml-2.0.7 lib/sass/constant/string.rb
haml-2.0.8 lib/sass/constant/string.rb
haml-2.0.4 lib/sass/constant/string.rb
haml-2.0.2 lib/sass/constant/string.rb
haml-2.0.6 lib/sass/constant/string.rb