Method: LHS::Collection::HandleNested::ClassMethods#concat
- Defined in:
- lib/lhs/concerns/collection/handle_nested.rb
#concat(input:, items:, record: nil) ⇒ Object
Concats existing nested collection of items with given items
30 31 32 |
# File 'lib/lhs/concerns/collection/handle_nested.rb', line 30 def concat(input:, items:, record: nil) input.dig(*items_key(record)).concat(items) end |