class Hash

Public Instance Methods

reverse_merge(other_hash) click to toggle source
# File lib/solusvm/hash.rb, line 13
def reverse_merge(other_hash)
  other_hash.merge(self)
end
reverse_merge!(other_hash) click to toggle source
# File lib/solusvm/hash.rb, line 19
def reverse_merge!(other_hash)
  replace(reverse_merge(other_hash))
end
to_query() click to toggle source
# File lib/solusvm/hash.rb, line 3
def to_query
  elements = []
  self.each do |key, value|
    elements << "#{CGI::escape(key.to_s)}=#{CGI::escape(value.to_s)}"
  end
  elements.join('&')
end