instance method
YAML::DBM#each_pair
ydbm.each_pair { |key, value| ... }
lib/yaml/dbm.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/yaml/dbm.rb, line 153
def each_pair # :yields: [key, value]
keys.each { |k| yield k, fetch( k ) }
self
end
Calls the given block once for each key, value pair in the database.
Returns self.