Class: Nelson::DivisionExpressionBuilder

Inherits:
ExpressionBuilder show all
Defined in:
lib/nelson/expression_builders/division_expression_builder.rb

Instance Attribute Summary

Attributes inherited from ExpressionBuilder

#terms

Instance Method Summary collapse

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

#buildObject



8
9
10
# File 'lib/nelson/expression_builders/division_expression_builder.rb', line 8

def build
  DivisionExpression.new(*built_terms)
end