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
4 5 6 |
# File 'lib/extensions/hash.rb', line 4 def self.zip(keys,values) # from Facets of Ruby library (keys.zip(values)).to_h end |