Class: Dentaku::BulkExpressionSolver::StrictEvaluator

Inherits:
Object
  • Object
show all
Defined in:
lib/dentaku/bulk_expression_solver.rb

Instance Method Summary collapse

Constructor Details

#initialize(calculator) ⇒ StrictEvaluator

Returns a new instance of StrictEvaluator.



10
11
12
# File 'lib/dentaku/bulk_expression_solver.rb', line 10

def initialize(calculator)
  @calculator = calculator
end

Instance Method Details

#evaluate(*args) ⇒ Object



14
15
16
# File 'lib/dentaku/bulk_expression_solver.rb', line 14

def evaluate(*args)
  @calculator.evaluate!(*args)
end