summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--lib/yaml/dbm.rb4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index eed0de9360..369597c9e7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Fri Jul 25 03:52:21 2003 why the lucky stiff <ruby-cvs@whytheluckystiff.net>
+
+ * lib/yaml/dbm.rb: replace indexes with values_at.
+
Fri Jul 25 02:55:59 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
* ext/openssl/extconf.rb: add check for libsocket and libnsl.
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 )