Method: YAML::DBM#each_pair
- Defined in:
- lib/yaml/dbm.rb
#each_pair ⇒ Object Also known as: each
:call-seq:
ydbm.each_pair { |key, value| ... }
Calls the given block once for each key, value pair in the database.
Returns self.
153 154 155 156 |
# File 'lib/yaml/dbm.rb', line 153 def each_pair # :yields: [key, value] keys.each { |k| yield k, fetch( k ) } self end |