hackedteam/rcs-common

View on GitHub
lib/rcs-common/cgi.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'cgi'

class CGI
  def self.encode_query(hash)
    return hash.map{|k,v| "#{CGI.escape(k.to_s)}=#{CGI.escape(v.to_s)}"}.join("&")
  end
end