Module: OshparkFloatExtensions

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

Instance Method Summary collapse

Instance Method Details

#to_query(key = nil) ⇒ Object



59
60
61
# File 'lib/oshpark/ext.rb', line 59

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