lib/code/parser/multiplication.rb in code-ruby-0.5.6 vs lib/code/parser/multiplication.rb in code-ruby-0.6.0
- old
+ new
@@ -1,9 +1,11 @@
+# frozen_string_literal: true
+
class Code
class Parser
- class Multiplication < Operation
+ class Multiplication < LeftOperation
def statement
- ::Code::Parser::UnaryMinus
+ Negation
end
def asterisk
str("*")
end