Class: Customize::Calculator::ExpressionCalculator

Inherits:
Base
  • Object
show all
Defined in:
lib/customize/calculator/expression_calculator.rb

Instance Method Summary collapse

Methods inherited from Base

input, #persisted?

Instance Method Details

#calculate(instance, options = {}) ⇒ Object



6
7
8
# File 'lib/customize/calculator/expression_calculator.rb', line 6

def calculate instance, options={}
	instance.instance_eval expression
end