Sha256: 49a542cbbea4bf5418ea0a055cd3f686c030b515f2e5e472e5da2d068492a418

Contents?: true

Size: 189 Bytes

Versions: 3

Compression:

Stored size: 189 Bytes

Contents

class Hash
  def to_http_str
    result = ''
    return result if self.empty?
    self.each do |key, val|
      result << "#{key}=#{URI.encode(val.to_s)}&"
    end
    result.chop
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nov-iknow-0.0.1 lib/ext/hash.rb
nov-iknow-0.0.2 lib/ext/hash.rb
nov-iknow-0.0.3 lib/ext/hash.rb