instance method
YAML::DBM#reject
ydbm.reject { |key, value| ... }
lib/yaml/dbm.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/yaml/dbm.rb, line 142
def reject
hsh = self.to_hash
hsh.reject { |k,v| yield k, v }
end
Converts the contents of the database to an in-memory Hash, then calls Hash#reject with the specified code block, returning a new Hash.