Class: Garcon::Coercions::HashDefinitions
- Defined in:
- lib/garcon/chef/coerce/coercions/hash_definitions.rb
Class Method Summary collapse
Class Method Details
.bind_to(coercer) ⇒ Object
23 24 25 26 |
# 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 |