Sha256: 47438d370a0a6894c149dc16e6b4a44e29e5272f7b3b662db0ff420a42548fe9
Contents?: true
Size: 565 Bytes
Versions: 5
Compression:
Stored size: 565 Bytes
Contents
require 'active_support/core_ext/string/inflections' require 'httparty' require 'uri' module Lol # Takes a hash and returns a copy of it with the keys that have been underscored # This method is here but should be somewhere else, probably an helper module # @param [Hash] a hash with keys in camelCase format # @return [Hash] a copy of the original hash, with hash keys that have been underscored def self.underscore_hash_keys hash hash.inject({}) { |memo, (key, value)| memo.update key.to_s.underscore => value } end end require 'lol/autoloader'
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
ruby-lol-0.9.10 | lib/lol.rb |
ruby-lol-0.9.9 | lib/lol.rb |
ruby-lol-0.9.8 | lib/lol.rb |
ruby-lol-0.9.7 | lib/lol.rb |
ruby-lol-0.9.6 | lib/lol.rb |