diff options
author | Sam Stephenson <sam@37signals.com> | 2006-06-02 17:28:15 +0000 |
---|---|---|
committer | Sam Stephenson <sam@37signals.com> | 2006-06-02 17:28:15 +0000 |
commit | c377ce50ed871a90a7e4f0d4d69062d01934ce85 (patch) | |
tree | 51ebf9b11009216659a92c87f9aaa64a21cbdbbe /activesupport/lib/active_support | |
parent | 8cdf9126d3c3174cad74f8ae4a913f1940d3474a (diff) | |
download | rails-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/active_support')
-rw-r--r-- | activesupport/lib/active_support/ordered_options.rb | 6 |
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 |