method
fetch
v1_9_2_180 -
Show latest stable
- Class:
YAML::DBM
fetch( keystr, ifnone = nil )public
No documentation available.
# File lib/yaml/dbm.rb, line 17
def fetch( keystr, ifnone = nil )
begin
val = super( keystr )
return YAML.load( val ) if String === val
rescue IndexError
end
if block_given?
yield keystr
else
ifnone
end
end