Sha256: bc48f2e997e66c4d5fac0e122b3b9e805eb55f4ebc7daec385b2c4418612c165

Contents?: true

Size: 249 Bytes

Versions: 16

Compression:

Stored size: 249 Bytes

Contents

# Extends Hash with additional helper methods
class Hash
  # Allows for conversion of string keys to symbols
  # @return [Hash] hash with symbols for keys
  def symbolize_keys
    each_with_object({}) { |(k, v), memo| memo[k.to_sym] = v }
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
filebound_client-0.4.4 lib/ext/hash.rb
filebound_client-0.4.3 lib/ext/hash.rb
filebound_client-0.4.2 lib/ext/hash.rb
filebound_client-0.4.1 lib/ext/hash.rb
filebound_client-0.3.8 lib/ext/hash.rb
filebound_client-0.3.7 lib/ext/hash.rb
filebound_client-0.3.6 lib/ext/hash.rb
filebound_client-0.3.5 lib/ext/hash.rb
filebound_client-0.3.4 lib/ext/hash.rb
filebound_client-0.3.3 lib/ext/hash.rb
filebound_client-0.3.2 lib/ext/hash.rb
filebound_client-0.3.1 lib/ext/hash.rb
filebound_client-0.3.0 lib/ext/hash.rb
filebound_client-0.2.0 lib/ext/hash.rb
filebound_client-0.1.1 lib/ext/hash.rb
filebound_client-0.1.0 lib/ext/hash.rb