lib/tfa/storage.rb in tfa-0.0.9 vs lib/tfa/storage.rb in tfa-0.0.10

- old
+ new

@@ -1,10 +1,10 @@ module TFA class Storage include Enumerable - def initialize(filename:) - @storage = PStore.new(File.join(Dir.home, ".#{filename}.pstore")) + def initialize(options) + @storage = PStore.new(File.join(Dir.home, ".#{options[:filename]}.pstore")) end def each all.each do |each| yield each