aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/ordered_hash.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/ordered_hash.rb b/activesupport/lib/active_support/ordered_hash.rb
index ac20988230..b2f04b427b 100644
--- a/activesupport/lib/active_support/ordered_hash.rb
+++ b/activesupport/lib/active_support/ordered_hash.rb
@@ -138,14 +138,17 @@ module ActiveSupport
def each_key
@keys.each { |key| yield key }
+ self
end
def each_value
@keys.each { |key| yield self[key]}
+ self
end
def each
@keys.each {|key| yield [key, self[key]]}
+ self
end
alias_method :each_pair, :each