Class: Nelson::DivisionExpressionBuilder
- Inherits:
-
ExpressionBuilder
- Object
- ExpressionBuilder
- Nelson::DivisionExpressionBuilder
- Defined in:
- lib/nelson/expression_builders/division_expression_builder.rb
Instance Attribute Summary
Attributes inherited from ExpressionBuilder
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(term1, term2) ⇒ DivisionExpressionBuilder
constructor
A new instance of DivisionExpressionBuilder.
Methods inherited from ExpressionBuilder
#and, #built_terms, #divided_by, #minus, #plus, #times
Constructor Details
#initialize(term1, term2) ⇒ DivisionExpressionBuilder
Returns a new instance of DivisionExpressionBuilder.
4 5 6 |
# File 'lib/nelson/expression_builders/division_expression_builder.rb', line 4 def initialize(term1, term2) super(term1, term2) end |
Instance Method Details
#build ⇒ Object
8 9 10 |
# File 'lib/nelson/expression_builders/division_expression_builder.rb', line 8 def build DivisionExpression.new(*built_terms) end |