method
fetch
fetch( keystr, ifnone = nil )
public
Hide source
# 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