Sha256: 2846828bb656d59abf4f43044090ad47788a158457f8ca16867f774fe289500e

Contents?: true

Size: 266 Bytes

Versions: 13

Compression:

Stored size: 266 Bytes

Contents

class Hash # :nodoc:
	# Turn all our keys into strings. Good for our @stores as they use
	# strings from keys seeing as anything coming from JSON has strings for
	# keys
	def stringify_keys!
		keys.each do |key|
			self[key.to_s] = delete(key)
		end
		self
	end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ns_connector-0.1.0 lib/ns_connector/hash.rb
ns_connector-0.0.17 lib/ns_connector/hash.rb
ns_connector-0.0.16 lib/ns_connector/hash.rb
ns_connector-0.0.15 lib/ns_connector/hash.rb
ns_connector-0.0.14 lib/ns_connector/hash.rb
ns_connector-0.0.13 lib/ns_connector/hash.rb
ns_connector-0.0.12 lib/ns_connector/hash.rb
ns_connector-0.0.11 lib/ns_connector/hash.rb
ns_connector-0.0.10 lib/ns_connector/hash.rb
ns_connector-0.0.9 lib/ns_connector/hash.rb
ns_connector-0.0.8 lib/ns_connector/hash.rb
ns_connector-0.0.7 lib/ns_connector/hash.rb
ns_connector-0.0.6 lib/ns_connector/hash.rb