Method: Serial::HashBuilder#collection!
- Defined in:
- lib/serial/hash_builder.rb
#collection!(key) {|builder| ... } ⇒ Object
Same as #collection, but will not raise an error on duplicate keys.
79 80 81 |
# File 'lib/serial/hash_builder.rb', line 79 def collection!(key, &block) attribute!(key, ArrayBuilder.build(@context, &block)) end |