Class: Warder::Arguments
- Inherits:
-
Object
- Object
- Warder::Arguments
- Defined in:
- lib/warder/arguments.rb
Overview
responsible for parsing cli arguments
Instance Method Summary collapse
-
#initialize(argv, stdout, kernel) ⇒ Arguments
constructor
A new instance of Arguments.
- #parse ⇒ Object
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
#parse ⇒ Object
13 14 15 16 17 |
# File 'lib/warder/arguments.rb', line 13 def parse assign_files OpenStruct.new(@options) end |