@see Literal#plus
# File lib/sass/script/string.rb, line 28 def plus(other) other_str = other.is_a?(Sass::Script::String) ? other.value : other.to_s Sass::Script::String.new(self.value + other_str, self.type) end
@see Node#to_s
# File lib/sass/script/string.rb, line 34 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
@see Node#to_sass
# File lib/sass/script/string.rb, line 47 def to_sass(opts = {}) to_s end
Generated with the Darkfish Rdoc Generator 2.