End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
YAML::DBM#to_hash
ydbm.to_hash → hash
lib/yaml/dbm.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/yaml/dbm.rb, line 271
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.