Class: Ali::CLI

Inherits:
Object
  • Object
show all
Defined in:
lib/ali/cli.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCLI

Returns a new instance of CLI.



6
7
8
# File 'lib/ali/cli.rb', line 6

def initialize
  @arguments = Ali::Arguments.new
end

Instance Attribute Details

#argumentsObject (readonly)

Returns the value of attribute arguments.



4
5
6
# File 'lib/ali/cli.rb', line 4

def arguments
  @arguments
end

Instance Method Details

#runObject



10
11
12
# File 'lib/ali/cli.rb', line 10

def run
  @arguments.task.perform
end