Sha256: 5ecbc2274b3dcc1ce38e033c17ddc4b44775e3fd8e4528998cb2f5d79f82d1cd

Contents?: true

Size: 192 Bytes

Versions: 3

Compression:

Stored size: 192 Bytes

Contents

module Customize
	module Calculator
		class ExpressionCalculator < Base
			input :expression

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
customize-0.0.8 lib/customize/calculator/expression_calculator.rb
customize-0.0.7 lib/customize/calculator/expression_calculator.rb
customize-0.0.6 lib/customize/calculator/expression_calculator.rb