aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorSam Stephenson <sam@37signals.com>2006-06-02 17:28:15 +0000
committerSam Stephenson <sam@37signals.com>2006-06-02 17:28:15 +0000
commitc377ce50ed871a90a7e4f0d4d69062d01934ce85 (patch)
tree51ebf9b11009216659a92c87f9aaa64a21cbdbbe /activesupport/lib
parent8cdf9126d3c3174cad74f8ae4a913f1940d3474a (diff)
downloadrails-c377ce50ed871a90a7e4f0d4d69062d01934ce85.tar.gz
rails-c377ce50ed871a90a7e4f0d4d69062d01934ce85.tar.bz2
rails-c377ce50ed871a90a7e4f0d4d69062d01934ce85.zip
Add OrderedHash#values
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4411 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/ordered_options.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/ordered_options.rb b/activesupport/lib/active_support/ordered_options.rb
index 48b5c92454..0704549ce0 100644
--- a/activesupport/lib/active_support/ordered_options.rb
+++ b/activesupport/lib/active_support/ordered_options.rb
@@ -16,7 +16,11 @@ module ActiveSupport
end
def keys
- self.collect { |i| i.first }
+ collect { |key, value| key }
+ end
+
+ def values
+ collect { |key, value| value }
end
private