Class: HammerCLI::Options::Validators::DSLBlockValidator
- Inherits:
-
Base
- Object
- OptionProcessor
- Base
- HammerCLI::Options::Validators::DSLBlockValidator
- Defined in:
- lib/hammer_cli/options/validators/dsl_block_validator.rb
Instance Method Summary collapse
-
#initialize(&block) ⇒ DSLBlockValidator
constructor
A new instance of DSLBlockValidator.
- #run(options, option_values) ⇒ Object
Methods inherited from Base
Methods inherited from OptionProcessor
Constructor Details
#initialize(&block) ⇒ DSLBlockValidator
Returns a new instance of DSLBlockValidator.
8 9 10 |
# File 'lib/hammer_cli/options/validators/dsl_block_validator.rb', line 8 def initialize(&block) @validation_block = block end |