Class: Inspec::Profile::AstHelper::InputCollectorWithinControlBlock
- Inherits:
-
InputCollectorBase
- Object
- Parser::AST::Processor
- CollectorBase
- InputCollectorBase
- Inspec::Profile::AstHelper::InputCollectorWithinControlBlock
- Defined in:
- lib/inspec/utils/profile_ast_helpers.rb
Constant Summary
Constants inherited from InputCollectorBase
Inspec::Profile::AstHelper::InputCollectorBase::REQUIRED_VALUES_MAP, Inspec::Profile::AstHelper::InputCollectorBase::VALID_INPUT_OPTIONS
Instance Attribute Summary
Attributes inherited from CollectorBase
Instance Method Summary collapse
-
#initialize(memo) ⇒ InputCollectorWithinControlBlock
constructor
A new instance of InputCollectorWithinControlBlock.
- #on_send(node) ⇒ Object
Methods inherited from InputCollectorBase
#check_and_collect_input, #collect_input, #input_pattern_match?
Constructor Details
#initialize(memo) ⇒ InputCollectorWithinControlBlock
Returns a new instance of InputCollectorWithinControlBlock.
326 327 328 |
# File 'lib/inspec/utils/profile_ast_helpers.rb', line 326 def initialize(memo) @memo = memo end |
Instance Method Details
#on_send(node) ⇒ Object
330 331 332 |
# File 'lib/inspec/utils/profile_ast_helpers.rb', line 330 def on_send(node) check_and_collect_input(node) end |