Module: OshparkFixnumExtensions

Included in:
Fixnum
Defined in:
lib/oshpark/ext.rb

Instance Method Summary collapse

Instance Method Details

#to_query(key = nil) ⇒ Object



53
54
55
# File 'lib/oshpark/ext.rb', line 53

def to_query key = nil
  key ? URI.escape("#{key}=#{self}") : URI.escape(self)
end