Sha256: 9b006ae3faad149daabd815f7e13812092f3cd624592e4b36014cd0764f4a9e2
Contents?: true
Size: 397 Bytes
Versions: 60
Compression:
Stored size: 397 Bytes
Contents
class Object # Alias of <tt>to_s</tt>. def to_param to_s end # Converts an object into a string suitable for use as a URL query string, using the given <tt>key</tt> as the # param name. # # Note: This method is defined as a default implementation for all Objects for Hash#to_query to work. def to_query(key) "#{CGI.escape(key.to_s)}=#{CGI.escape(to_param.to_s)}" end end
Version data entries
60 entries across 59 versions & 16 rubygems