Class: Inspec::Profile::AstHelper::TitleCollector
- Inherits:
-
CollectorBase
- Object
- Parser::AST::Processor
- CollectorBase
- Inspec::Profile::AstHelper::TitleCollector
- Defined in:
- lib/inspec/utils/profile_ast_helpers.rb
Instance Attribute Summary
Attributes inherited from CollectorBase
Instance Method Summary collapse
Methods inherited from CollectorBase
Constructor Details
This class inherits a constructor from Inspec::Profile::AstHelper::CollectorBase
Instance Method Details
#on_send(node) ⇒ Object
110 111 112 113 114 115 |
# File 'lib/inspec/utils/profile_ast_helpers.rb', line 110 def on_send(node) if RuboCop::AST::NodePattern.new("(send nil? :title ...)").match(node) # TODO - title may not be a simple string memo[:title] = node.children[2].value end end |