class Garcon::Coercions::HashDefinitions
Public Class Methods
bind_to(coercer)
click to toggle source
# File lib/garcon/chef/coerce/coercions/hash_definitions.rb, line 23 def self.bind_to(coercer) coercer.register(Hash, String) { |obj, _| obj.to_s } coercer.register(Hash, Array) { |obj, _| obj.to_a } end