Method: Serial::HashBuilder#map
- Defined in:
- lib/serial/hash_builder.rb
#map(key, list) {|builder, value| ... } ⇒ Object
Declare a collection attribute from a list of values.
97 98 99 100 |
# File 'lib/serial/hash_builder.rb', line 97 def map(key, list, &block) check_duplicate_key!(key) map!(key, list, &block) end |