Method: Serial::HashBuilder#collection
- Defined in:
- lib/serial/hash_builder.rb
#collection(key) {|builder| ... } ⇒ Object
Declare a collection attribute. This is a low-level method, see #map instead.
67 68 69 70 |
# File 'lib/serial/hash_builder.rb', line 67 def collection(key, &block) check_duplicate_key!(key) collection!(key, &block) end |