Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/extensions/hash.rb
Overview
the following extension for class Hash is needed (from Facets of Ruby library):
Class Method Summary collapse
-
.zip(keys, values) ⇒ Object
from Facets of Ruby library.
Class Method Details
.zip(keys, values) ⇒ Object
from Facets of Ruby library
6 7 8 |
# File 'lib/extensions/hash.rb', line 6 def self.zip(keys, values) # from Facets of Ruby library keys.zip(values).to_h end |