Class: Croesus::Coercions::HashDefinitions
- Defined in:
- lib/croesus/coercions/hash_definitions.rb
Class Method Summary collapse
Class Method Details
.bind_to(coercer) ⇒ Object
22 23 24 25 |
# File 'lib/croesus/coercions/hash_definitions.rb', line 22 def self.bind_to(coercer) coercer.register(Hash, String) { |obj, _| obj.to_s } coercer.register(Hash, Array) { |obj, _| obj.to_a } end |