Class: Gobstones::Lang::ArithmeticExpression
- Inherits:
-
TwoArgExpression
- Object
- Expression
- TwoArgExpression
- Gobstones::Lang::ArithmeticExpression
- Defined in:
- lib/gobstones/lang/expressions/arithmetic_expressions.rb
Instance Attribute Summary
Attributes inherited from TwoArgExpression
Class Method Summary collapse
Methods inherited from TwoArgExpression
#equality_attributes, evaluates_with, #initialize
Methods inherited from Expression
Methods included from EqualityDefinition
Constructor Details
This class inherits a constructor from Gobstones::Lang::TwoArgExpression
Class Method Details
.numbers(first, second) ⇒ Object
9 10 11 |
# File 'lib/gobstones/lang/expressions/arithmetic_expressions.rb', line 9 def self.numbers(first, second) new(first.to_gbs_num, second.to_gbs_num) end |