Method: Keisan::AST::Number#*

Defined in:
lib/keisan/ast/number.rb

#*(other) ⇒ Object



45
46
47
48
49
50
51
52
53
# File 'lib/keisan/ast/number.rb', line 45

def *(other)
  other = other.to_node
  case other
  when Number
    Number.new(value * other.value)
  else
    super
  end
end