Class: Customize::Calculator::Base

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

Direct Known Subclasses

ExpressionCalculator

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.input(name) ⇒ Object



6
7
8
9
10
# File 'lib/customize/calculator/base.rb', line 6

def self.input name
	sym = name.to_sym
	inputs << sym
	attr_accessor sym
end

Instance Method Details

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



12
13
# File 'lib/customize/calculator/base.rb', line 12

def calculate instance, options={}
end

#persisted?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/customize/calculator/base.rb', line 15

def persisted?
	false
end