@see Value#plus
# File lib/sass/script/value/string.rb, line 26 def plus(other) other_str = other.is_a?(Sass::Script::Value::String) ? other.value : other.to_s Sass::Script::Value::String.new(value + other_str, type) end
@see Value#to_s
# File lib/sass/script/value/string.rb, line 32 def to_s(opts = {}) if @type == :identifier return @value.gsub(/\n\s*/, " ") end return "\"#{value.gsub('"', "\\\"")}\"" if opts[:quote] == %{"} return "'#{value.gsub("'", "\\'")}'" if opts[:quote] == %{'} return "\"#{value}\"" unless value.include?('"') return "'#{value}'" unless value.include?("'") "\"#{value.gsub('"', "\\\"")}\"" # ' end
Generated with the Darkfish Rdoc Generator 2.