Class: AppMap::Inspect::ClassParseNode

Inherits:
ParseNode show all
Defined in:
lib/appmap/inspect/parse_node.rb

Overview

A Ruby class.

Instance Attribute Summary

Attributes inherited from ParseNodeStruct

#ancestors, #file_path, #node

Instance Method Summary collapse

Methods inherited from ParseNode

#enclosing_type_node, from_node, #parent_node, #preceding_sibling_nodes, #public?

Instance Method Details

#to_feature(attributes) ⇒ Object



69
70
71
# File 'lib/appmap/inspect/parse_node.rb', line 69

def to_feature(attributes)
  AppMap::Feature::Cls.new(extract_class_name(node), "#{file_path}:#{location.line}", attributes)
end