Class: Shh::Command::RemoveKey

Inherits:
Object
  • Object
show all
Includes:
KeyCommand
Defined in:
lib/shh/command/remove_key.rb

Instance Method Summary collapse

Methods included from KeyCommand

#completion, #initialize, #usage

Instance Method Details

#execute(key = nil) ⇒ Object



10
11
12
# File 'lib/shh/command/remove_key.rb', line 10

def execute key=nil
  @entry.delete(key)
end

#helpObject



6
7
8
# File 'lib/shh/command/remove_key.rb', line 6

def help
  "Removes the specified key from the entry"
end