lib/rbbt/persist.rb in rbbt-util-5.13.5 vs lib/rbbt/persist.rb in rbbt-util-5.13.6
- old
+ new
@@ -394,10 +394,10 @@
def self.persist(name, type = nil, persist_options = {}, &block)
type ||= :marshal
return (persist_options[:repo] || Persist::MEMORY)[persist_options[:file]] ||= yield if type ==:memory and persist_options[:file] and persist_options[:persist] and persist_options[:persist] != :update
- if FalseClass == persist_options[:persist]
+ if FalseClass === persist_options[:persist]
yield
else
other_options = Misc.process_options persist_options, :other
path = persistence_path(name, persist_options, other_options || {})