Class: Shh::Command::ShowKey

Inherits:
Object
  • Object
show all
Includes:
KeyCommand
Defined in:
lib/shh/command/show_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/show_key.rb', line 10

def execute key=nil
  @io.say @entry[key]
end

#helpObject



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

def help
  "Displays the value associated with the specified key"
end