Class: AppMap::Inspect::Inspector

Inherits:
Object
  • Object
show all
Defined in:
lib/appmap/inspect/inspector.rb

Overview

Inspector is an abstract class for extracting features from a Ruby program.

Direct Known Subclasses

ExplicitInspector, ImplicitInspector

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file_path, parse_nodes, comments) ⇒ Inspector

Returns a new instance of Inspector.



7
8
9
10
11
# File 'lib/appmap/inspect/inspector.rb', line 7

def initialize(file_path, parse_nodes, comments)
  @file_path = file_path
  @parse_nodes = parse_nodes
  @comments = comments
end

Instance Attribute Details

#commentsObject (readonly)

Returns the value of attribute comments.



5
6
7
# File 'lib/appmap/inspect/inspector.rb', line 5

def comments
  @comments
end

#file_pathObject (readonly)

Returns the value of attribute file_path.



5
6
7
# File 'lib/appmap/inspect/inspector.rb', line 5

def file_path
  @file_path
end

#parse_nodesObject (readonly)

Returns the value of attribute parse_nodes.



5
6
7
# File 'lib/appmap/inspect/inspector.rb', line 5

def parse_nodes
  @parse_nodes
end