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 | 292738541e454f919d8d670e126280fdff146a2f (patch) | |
| tree | 2f6ba02ef26fad28d730828738ec2d85b23396b7 /lib/yaml | |
| parent | 50c22a35b1c3ec4a6d18ea2171ce92bb0fdb99d9 (diff) | |
| download | ruby-292738541e454f919d8d670e126280fdff146a2f.tar.gz ruby-292738541e454f919d8d670e126280fdff146a2f.tar.xz ruby-292738541e454f919d8d670e126280fdff146a2f.zip | |
* lib/yaml/dbm.rb: replace indexes with values_at.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/yaml')
| -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 b1474a736..87d600925 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 ) |
