Class: AppMap::Inspect::Inspector
- Inherits:
-
Object
- Object
- AppMap::Inspect::Inspector
- Defined in:
- lib/appmap/inspect/inspector.rb
Overview
Inspector is an abstract class for extracting features from a Ruby program.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#comments ⇒ Object
readonly
Returns the value of attribute comments.
-
#file_path ⇒ Object
readonly
Returns the value of attribute file_path.
-
#parse_nodes ⇒ Object
readonly
Returns the value of attribute parse_nodes.
Instance Method Summary collapse
-
#initialize(file_path, parse_nodes, comments) ⇒ Inspector
constructor
A new instance of Inspector.
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
#comments ⇒ Object (readonly)
Returns the value of attribute comments.
5 6 7 |
# File 'lib/appmap/inspect/inspector.rb', line 5 def comments @comments end |
#file_path ⇒ Object (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_nodes ⇒ Object (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 |