Class: HammerCLI::Options::OptionProcessor
- Inherits:
-
Object
- Object
- HammerCLI::Options::OptionProcessor
show all
- Defined in:
- lib/hammer_cli/options/option_processor.rb
Instance Method Summary
collapse
Constructor Details
Returns a new instance of OptionProcessor.
4
5
6
|
# File 'lib/hammer_cli/options/option_processor.rb', line 4
def initialize(name: nil)
@name = name
end
|
Instance Method Details
#name ⇒ Object
8
9
10
|
# File 'lib/hammer_cli/options/option_processor.rb', line 8
def name
@name || self.class.name.split('::')[-1]
end
|
#process(defined_options, result) ⇒ Object
12
13
14
|
# File 'lib/hammer_cli/options/option_processor.rb', line 12
def process(defined_options, result)
result
end
|