From: noreply@... Date: 2006-02-05T12:52:31+09:00 Subject: [ ruby-Bugs-3453 ] PStore#fetch does not reture default value. Bugs item #3453, was opened at 2006-02-05 12:40 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=3453&group_id=426 Category: Standard Library Group: None Status: Open Resolution: None Priority: 3 Submitted By: Akihiro ARISAWA (arisawa) Assigned to: Nobody (None) Summary: PStore#fetch does not reture default value. Initial Comment: PStore#fetch does not return the specified default value when the specified name is not found. ----------------------------------------------------------------------------- #!/usr/bin/env ruby require 'pstore' db = PStore.new("not exist file") db.transaction(true) { p db.fetch(:name, :default) # => nil } ----------------------------------------------------------------------------- % ruby -v ruby 1.8.4 (2005-12-24) [i486-linux] ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=3453&group_id=426