Class: Warder::Arguments

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

Overview

responsible for parsing cli arguments

Instance Method Summary collapse

Constructor Details

#initialize(argv, stdout, kernel) ⇒ Arguments

Returns a new instance of Arguments.



6
7
8
9
10
11
# File 'lib/warder/arguments.rb', line 6

def initialize(argv, stdout, kernel)
  @argv = argv
  @stdout = stdout
  @kernel = kernel
  @options = {}
end

Instance Method Details

#parseObject



13
14
15
16
17
# File 'lib/warder/arguments.rb', line 13

def parse
  parse_options
  assign_files
  OpenStruct.new(@options)
end