class Sass::Script::String
def to_s(opts = {})
- See: Node#to_s -
def to_s(opts = {}) if self.type == :identifier return %q{""} if context == :equals && self.value.size == 0 return self.value.gsub("\n", " ") end return "\"#{value.gsub('"', "\\\"")}\"" if opts[:quote] == %q{"} return "'#{value.gsub("'", "\\'")}'" if opts[:quote] == %q{'} return "\"#{value}\"" unless value.include?('"') return "'#{value}'" unless value.include?("'") "\"#{value.gsub('"', "\\\"")}\"" #' end