Method: Array#to_hash_element
- Defined in:
- lib/ckick/hash_elements.rb
#to_hash_element ⇒ Object
converts to hash-serializable value
48 49 50 51 52 53 54 55 56 |
# File 'lib/ckick/hash_elements.rb', line 48 def to_hash_element collect do |element| if element.respond_to?(:to_hash) element.to_hash else element.to_hash_element end end end |