lib/garcon/chef/coerce/coercer.rb in garcun-0.0.2 vs lib/garcon/chef/coerce/coercer.rb in garcun-0.0.3

- old
+ new

@@ -28,10 +28,12 @@ def self.coercer=(coercer) @coercer = coercer end class Coercer + # Coerces objects based on the definitions that are registered. + # def initialize @coercions = Hash.new do |hash, origin| hash[origin] = Hash.new do |h, target| h[target] = Coercion.new(origin, target) end @@ -99,9 +101,10 @@ end # Calls the coercion. # # @return [Object] + # def call(object) @block.call(object, @target) end end end