Class: Shh::Command::ShowKey
- Inherits:
-
Object
- Object
- Shh::Command::ShowKey
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
|
#help ⇒ Object
6
7
8
|
# File 'lib/shh/command/show_key.rb', line 6
def help
"Displays the value associated with the specified key"
end
|