Module: Nelson::DSL

Included in:
Nelson
Defined in:
lib/nelson/dsl.rb

Class Method Summary collapse

Class Method Details

.product_of(*terms) ⇒ Object



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

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

.sum_of(*terms) ⇒ Object



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

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