Class: Pennyworth::CLI::Parsers::Core
- Inherits:
-
Object
- Object
- Pennyworth::CLI::Parsers::Core
- Defined in:
- lib/pennyworth/cli/parsers/core.rb
Overview
Handles parsing of Command Line Interface (CLI) core options.
Class Method Summary collapse
Instance Method Summary collapse
- #call(arguments = []) ⇒ Object
-
#initialize(configuration = Configuration::Loader.call, client: CLIENT) ⇒ Core
constructor
A new instance of Core.
Constructor Details
#initialize(configuration = Configuration::Loader.call, client: CLIENT) ⇒ Core
Returns a new instance of Core.
15 16 17 18 |
# File 'lib/pennyworth/cli/parsers/core.rb', line 15 def initialize configuration = Configuration::Loader.call, client: CLIENT @configuration = configuration @client = client end |
Class Method Details
.call ⇒ Object
13 |
# File 'lib/pennyworth/cli/parsers/core.rb', line 13 def self.call(...) = new(...).call |