Class: Inspec::Profile::AstHelper::InputCollectorWithinControlBlock

Inherits:
InputCollectorBase show all
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

#memo

Instance Method Summary collapse

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