Class: AppMap::Trace::RubyMethod
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- AppMap::Trace::RubyMethod
- Defined in:
- lib/appmap/trace.rb
Instance Attribute Summary collapse
-
#class_name ⇒ Object
readonly
Returns the value of attribute class_name.
-
#static ⇒ Object
readonly
Returns the value of attribute static.
Instance Method Summary collapse
- #comment ⇒ Object
-
#initialize(package, class_name, method, static) ⇒ RubyMethod
constructor
A new instance of RubyMethod.
- #labels ⇒ Object
- #name ⇒ Object
- #package ⇒ Object
- #source_location ⇒ Object
Constructor Details
#initialize(package, class_name, method, static) ⇒ RubyMethod
8 9 10 11 12 13 14 15 |
# File 'lib/appmap/trace.rb', line 8 def initialize(package, class_name, method, static) super(method) @package = package @class_name = class_name @method = method @static = static end |
Instance Attribute Details
#class_name ⇒ Object (readonly)
Returns the value of attribute class_name.
6 7 8 |
# File 'lib/appmap/trace.rb', line 6 def class_name @class_name end |
#static ⇒ Object (readonly)
Returns the value of attribute static.
6 7 8 |
# File 'lib/appmap/trace.rb', line 6 def static @static end |
Instance Method Details
#comment ⇒ Object
21 22 23 24 25 |
# File 'lib/appmap/trace.rb', line 21 def comment @method.comment rescue MethodSource::SourceNotFoundError nil end |
#labels ⇒ Object
35 36 37 |
# File 'lib/appmap/trace.rb', line 35 def labels @package.labels end |
#name ⇒ Object
31 32 33 |
# File 'lib/appmap/trace.rb', line 31 def name @method.name end |
#package ⇒ Object
27 28 29 |
# File 'lib/appmap/trace.rb', line 27 def package @package.name end |
#source_location ⇒ Object
17 18 19 |
# File 'lib/appmap/trace.rb', line 17 def source_location @method.source_location end |