Method: Pwl::Locker#initialize

Defined in:
lib/pwl/locker.rb

#initialize(file, master_password) ⇒ Locker

Create a new locker object by loading an existing file.

Beware: New is overridden; it performs additional actions before and after #initialize



95
96
97
98
99
# File 'lib/pwl/locker.rb', line 95

def initialize(file, master_password)
  @backend = PStore.new(file, true)
  @backend.ultra_safe = true
  @master_password = master_password
end