Class: Shh::Command::LaunchKey

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

Instance Method Summary collapse

Methods included from KeyCommand

#completion, #initialize, #usage

Instance Method Details

#execute(key = nil) ⇒ Object



11
12
13
# File 'lib/shh/command/launch_key.rb', line 11

def execute key=nil
  (@entry[key] || '').to_launcher
end

#helpObject



7
8
9
# File 'lib/shh/command/launch_key.rb', line 7

def help
  "Launches the value (usually a url) associated with the specified key using default application"
end