Module: ActiveRecordCalculator::ClassMethods

Defined in:
lib/active_record_calculator.rb

Instance Method Summary collapse

Instance Method Details

#calculator(options = {}) {|c| ... } ⇒ Object

Yields:

  • (c)


17
18
19
20
21
# File 'lib/active_record_calculator.rb', line 17

def calculator(options = {}, &blk)
  c = CalculatorProxy.new(self, options)
  yield c if blk
  c
end