Class: Shell::Run

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

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ Run

Returns a new instance of Run.



8
9
10
11
12
13
14
# File 'lib/shell/shell.rb', line 8

def initialize argv
  @argv = argv
  
  @options = Shell::Parser.get_options @argv
  @command = Shell::Parser.get_command @argv
  @arguments = Shell::Parser.get_arguments @argv
end