Class: Object

Inherits:
BasicObject
Defined in:
lib/core_ext/object.rb

Instance Method Summary collapse

Instance Method Details

#to_paramObject



5
6
7
# File 'lib/core_ext/object.rb', line 5

def to_param
  to_s
end

#to_query(key) ⇒ Object



11
12
13
# File 'lib/core_ext/object.rb', line 11

def to_query(key)
  [CGI.escape(key.to_s), CGI.escape(to_param.to_s)].join('=')
end