Class: Launchr::Application
- Inherits:
-
Object
- Object
- Launchr::Application
- Defined in:
- lib/launchr/application.rb
Overview
The Launchr Application Object. Instantiated for command-line mode
Instance Method Summary collapse
-
#initialize(*args, &blk) ⇒ Application
constructor
A new instance of Application.
Constructor Details
#initialize(*args, &blk) ⇒ Application
Returns a new instance of Application.
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/launchr/application.rb', line 10 def initialize *args, &blk @cli = Launchr::CLI.new Launchr.load_default Launchr.config[:args] = @cli.parse Launchr.import_args @commands = Launchr::Commands.new @commands.run end |