Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
YAML::DBM#each
each
lib/yaml/dbm.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/yaml/dbm.rb, line 153
def each_pair # :yields: [key, value]
keys.each { |k| yield k, fetch( k ) }
self
end
Alias of #each_pair
Calls the given block once for each key, value pair in the database.
Returns self.