Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/hash_ext.rb
Instance Method Summary collapse
Instance Method Details
#to_key ⇒ Object
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 |