Class: Warder::CLI::Arguments
- Inherits:
-
Object
- Object
- Warder::CLI::Arguments
- Defined in:
- lib/warder/cli/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.
7 8 9 10 11 12 |
# File 'lib/warder/cli/arguments.rb', line 7 def initialize(argv, stdout, kernel) @argv = argv @stdout = stdout @kernel = kernel @options = {} end |
Instance Method Details
#parse ⇒ Object
14 15 16 17 18 |
# File 'lib/warder/cli/arguments.rb', line 14 def parse assign_files OpenStruct.new(@options) end |