Method: Fech::Filing#hash_zip
- Defined in:
- lib/fech/filing.rb
#hash_zip(keys, values) ⇒ Fech::Mapped, Hash
Combines an array of keys and values into an Fech::Mapped object, a type of Hash.
211 212 213 |
# File 'lib/fech/filing.rb', line 211 def hash_zip(keys, values) Fech::Mapped.new(self, values.first).merge(Hash[*keys.zip(values).flatten]) end |