class Sass::Script::Literal

def plus(other)

Returns:
  • (Script::String) - A string containing both literals

Parameters:
  • other (Literal) -- The right-hand side of the operator
def plus(other)
  if other.is_a?(Sass::Script::String)
    return Sass::Script::String.new(self.to_s + other.value, other.type)
  end
  Sass::Script::String.new(self.to_s + other.to_s)
end