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.



327
328
329
# File 'lib/inspec/utils/profile_ast_helpers.rb', line 327

def initialize(memo)
  @memo = memo
end

Instance Method Details

#on_send(node) ⇒ Object



331
332
333
# File 'lib/inspec/utils/profile_ast_helpers.rb', line 331

def on_send(node)
  check_and_collect_input(node)
end