Class: Plist4r::Application

Inherits:
Object show all
Defined in:
lib/plist4r/application.rb

Overview

The Plist4r Application Object. Instantiated for command-line mode

See Also:

Instance Method Summary collapse

Constructor Details

#initialize(*args, &blk) ⇒ Application

Returns a new instance of Application.



10
11
12
13
14
15
16
# File 'lib/plist4r/application.rb', line 10

def initialize *args, &blk
  @cli = Plist4r::CLI.new
  Plist4r::Config[:args] = @cli.parse

  @commands = Plist4r::Commands.new
  @commands.run
end