Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/zfben_libjs/lib.rb
Instance Method Summary collapse
Instance Method Details
#merges(*hashes) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/zfben_libjs/lib.rb', line 12 def merges *hashes if hashes.length < 1 self else merged = self hashes.each do |hash| merged = merged.merge hash end merged end end |