Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/roart/core/array.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#to_hash ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/roart/core/array.rb', line 3 def to_hash h = Hash.new self.each do |element| h.update(element.to_sym => nil) end h end |