Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/awis/hash.rb
Instance Method Summary collapse
Instance Method Details
#array_slice_merge!(key, array, count) ⇒ Object
2 3 4 |
# File 'lib/awis/hash.rb', line 2 def array_slice_merge!(key, array, count) self[key] = array.each_slice(count).collect { |e| e.reduce({}, :merge) } end |