Class: Clandestine::RemoveSafe
- Inherits:
-
Object
- Object
- Clandestine::RemoveSafe
- Defined in:
- lib/clandestine/commands/remove_safe.rb
Instance Method Summary collapse
-
#initialize(safe_password) ⇒ RemoveSafe
constructor
A new instance of RemoveSafe.
- #remove ⇒ Object
Constructor Details
#initialize(safe_password) ⇒ RemoveSafe
Returns a new instance of RemoveSafe.
8 9 10 |
# File 'lib/clandestine/commands/remove_safe.rb', line 8 def initialize(safe_password) @safe_password = safe_password end |
Instance Method Details
#remove ⇒ Object
12 13 14 15 16 |
# File 'lib/clandestine/commands/remove_safe.rb', line 12 def remove Safe.new(safe_password).open do |safe| safe.remove end end |