Class: Hash

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

Instance Method Summary collapse

Instance Method Details

#to_keyObject



2
3
4
# File 'lib/hash_ext.rb', line 2

def to_key
  sort{ |a,b| a[0].to_s <=> b[0].to_s }.map{ |values| values.join('=') }.join
end