Sha256: 60a3fab4fe110ee5d83bb545a41e1f2093684883602669be6347db49eb5b09a7

Contents?: true

Size: 134 Bytes

Versions: 2

Compression:

Stored size: 134 Bytes

Contents

# frozen_string_literal: true

class Hash
  def queryfy
    keys.map do |key|
      "#{key}=#{self[key]}"
    end.join("&")
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bs2_api-0.3.2 lib/bs2_api/initializers/hash.rb
bs2_api-0.3.1 lib/bs2_api/initializers/hash.rb