class Launchy::Argv
Ecapsulate the commandline argumens passed to Launchy
Attributes
Public Class Methods
Source
# File lib/launchy/argv.rb, line 9 def initialize(*args) @argv = args.flatten end
Public Instance Methods
Source
# File lib/launchy/argv.rb, line 29 def blank? @argv.empty? || @argv.first.strip.empty? end
Source
# File lib/launchy/argv.rb, line 33 def executable? ::Launchy::Application.find_executable(@argv.first) end