Class: Hash

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

Instance Method Summary collapse

Instance Method Details

#to_queryObject

very naive implementation of to_query



3
4
5
# File 'lib/hash.rb', line 3

def to_query
  map { |key, value| "#{key}=#{value}" }.join('&')
end