Class: AppMap::Inspect::MethodParseNode
- Inherits:
-
ParseNode
- Object
- Struct
- ParseNodeStruct
- ParseNode
- AppMap::Inspect::MethodParseNode
- Defined in:
- lib/appmap/inspect/parse_node.rb
Overview
Abstract representation of a method.
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from ParseNodeStruct
Instance Method Summary collapse
Methods inherited from ParseNode
#enclosing_type_node, from_node, #parent_node, #preceding_sibling_nodes, #public?
Instance Method Details
#enclosing_names ⇒ Object
83 84 85 86 87 88 89 |
# File 'lib/appmap/inspect/parse_node.rb', line 83 def enclosing_names ancestors.select do |a| %i[class module].include?(a.type) end.map do |a| send("extract_#{a.type}_name", a) end end |