Class: Shh::Command::CopyKey
- Inherits:
-
Object
- Object
- Shh::Command::CopyKey
show all
- Includes:
- KeyCommand
- Defined in:
- lib/shh/command/copy_key.rb
Instance Method Summary
collapse
Methods included from KeyCommand
#completion, #initialize, #usage
Instance Method Details
#execute(key = nil) ⇒ Object
12
13
14
|
# File 'lib/shh/command/copy_key.rb', line 12
def execute key=nil
(@entry[key] || '').to_clipboard
end
|
#help ⇒ Object
8
9
10
|
# File 'lib/shh/command/copy_key.rb', line 8
def help
"Copies the value associated with the specified key to the clipboard"
end
|