Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/rubyang/compat.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#to_h ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/rubyang/compat.rb', line 6 def to_h h = Hash.new self.each do |k, v| h[k] = v end h end |