instance method
YAML::DBM#to_hash
ydbm.to_hash → hash
lib/yaml/dbm.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/yaml/dbm.rb, line 286
def to_hash
h = {}
keys.each { |k| h[ k ] = self.fetch( k ) }
h
end
Converts the contents of the database to an in-memory Hash object, and returns it.