diff options
author | Artur Bilski <admin@arturbilski.pl> | 2012-11-23 15:24:38 +0100 |
---|---|---|
committer | Artur Bilski <admin@arturbilski.pl> | 2012-11-23 15:24:38 +0100 |
commit | 4b587ca8c1dd0f5f09321183222eeb27506ad0fd (patch) | |
tree | 1f842e9c711d09537bb6279a11fbea91acb34d70 /lib/hashie/hash.rb | |
parent | 212696ffa4fd016a980f77a79b9ae1e07cde79f6 (diff) | |
download | hashie-4b587ca8c1dd0f5f09321183222eeb27506ad0fd.tar.gz |
remove unnecessary scoping
Diffstat (limited to 'lib/hashie/hash.rb')
-rw-r--r-- | lib/hashie/hash.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/hashie/hash.rb b/lib/hashie/hash.rb index 53af9e4..3a6ad52 100644 --- a/lib/hashie/hash.rb +++ b/lib/hashie/hash.rb @@ -5,7 +5,7 @@ module Hashie # functions baked in such as stringify_keys that may # not be available in all libraries. class Hash < ::Hash - include Hashie::HashExtensions + include HashExtensions # Converts a mash back to a hash (with stringified keys) def to_hash @@ -14,10 +14,10 @@ module Hashie if self[k].is_a?(Array) out[k] ||= [] self[k].each do |array_object| - out[k] << (Hashie::Hash === array_object ? array_object.to_hash : array_object) + out[k] << (Hash === array_object ? array_object.to_hash : array_object) end else - out[k] = Hashie::Hash === self[k] ? self[k].to_hash : self[k] + out[k] = Hash === self[k] ? self[k].to_hash : self[k] end end out |