Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/rubyMorphbank.rb

Overview

Patch to convert arrays to hashes. Not the best solution at all.

Instance Method Summary collapse

Instance Method Details

#make_a_hashObject

don’t use to_<foo>, conflicts with other nasty patchwork (e.g. Alchemist gem)



67
68
69
# File 'lib/rubyMorphbank.rb', line 67

def make_a_hash # don't use to_<foo>, conflicts with other nasty patchwork (e.g. Alchemist gem) 
  Hash[*self]
end