Module: Nelson::DSL

Extended by:
DSL
Included in:
Nelson, DSL
Defined in:
lib/nelson/dsl.rb

Instance Method Summary collapse

Instance Method Details

#difference_of(*terms) ⇒ Object Also known as: difference_between



17
18
19
# File 'lib/nelson/dsl.rb', line 17

def difference_of(*terms)
  SubtractionExpressionBuilder.new(*terms)
end

#product_of(*terms) ⇒ Object



5
6
7
# File 'lib/nelson/dsl.rb', line 5

def product_of(*terms)
  MultipicationExpressionBuilder.new(*terms)
end

#quotient_of(*terms) ⇒ Object



13
14
15
# File 'lib/nelson/dsl.rb', line 13

def quotient_of(*terms)
  DivisionExpressionBuilder.new(*terms)
end

#sum_of(*terms) ⇒ Object



9
10
11
# File 'lib/nelson/dsl.rb', line 9

def sum_of(*terms)
  AdditionExpressionBuilder.new(*terms)
end