class Sass::Script::Value::Number

def times(other)

Raises:
  • (NoMethodError) - if `other` is an invalid type

Returns:
  • (Number, Color) - The result of the operation

Parameters:
  • other (Number, Color) -- The right-hand side of the operator
def times(other)
  if other.is_a? Number
    operate(other, :*)
  elsif other.is_a? Color
    other.times(self)
  else
    raise NoMethodError.new(nil, :times)
  end
end