Sha256: 93f406032293abcdd145ff174768098b864590ad0faf1fba3361afdeeeece872
Contents?: true
Size: 249 Bytes
Versions: 3
Compression:
Stored size: 249 Bytes
Contents
require 'cgi' class Object unless method_defined?(:to_param) def to_param to_s end end unless method_defined?(:to_query) def to_query(key) [CGI.escape(key.to_s), CGI.escape(to_param.to_s)].join('=') end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
the_viking-1.0.0 | lib/core_ext/object.rb |
viking-1.0.1 | lib/core_ext/object.rb |
viking-1.0.0 | lib/core_ext/object.rb |