diff options
author | why <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-24 18:56:09 +0000 |
---|---|---|
committer | why <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-24 18:56:09 +0000 |
commit | cb5798876e0ed4b6aa2b29f30dae22dee6fbe6d6 (patch) | |
tree | 2f6ba02ef26fad28d730828738ec2d85b23396b7 /lib | |
parent | 5dd2b7102c42cd31a0fec424addbdeaeefb235ac (diff) | |
download | ruby-cb5798876e0ed4b6aa2b29f30dae22dee6fbe6d6.tar.gz |
* lib/yaml/dbm.rb: replace indexes with values_at.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/yaml/dbm.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/yaml/dbm.rb b/lib/yaml/dbm.rb index b1474a736a..87d6009250 100644 --- a/lib/yaml/dbm.rb +++ b/lib/yaml/dbm.rb @@ -29,7 +29,7 @@ class DBM < ::DBM def index( keystr ) super( keystr.to_yaml ) end - def indexes( *keys ) + def values_at( *keys ) keys.collect { |k| fetch( k ) } end def delete( key ) @@ -82,7 +82,7 @@ class DBM < ::DBM if block_given? self.keys.collect { |k| v = self[k]; [k, v] if yield k, v }.compact else - indexes( *keys ) + values_at( *keys ) end end def store( key, val ) |