Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/roart/core/array.rb

Direct Known Subclasses

Roart::HistoryArray

Instance Method Summary collapse

Instance Method Details

#to_hashObject



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