Class: RailsTracepointStack::TraceRecord
- Inherits:
-
Struct
- Object
- Struct
- RailsTracepointStack::TraceRecord
- Defined in:
- lib/rails_tracepoint_stack/trace_record.rb
Overview
An immutable snapshot of a single trace. The TracePoint object is only valid while its event is being handled, so anything worth keeping has to be copied out before the handler returns.
Instance Attribute Summary collapse
-
#class_name ⇒ Object
Returns the value of attribute class_name.
-
#depth ⇒ Object
Returns the value of attribute depth.
-
#exception_class ⇒ Object
Returns the value of attribute exception_class.
-
#exception_message ⇒ Object
Returns the value of attribute exception_message.
-
#file_path ⇒ Object
Returns the value of attribute file_path.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#line_number ⇒ Object
Returns the value of attribute line_number.
-
#method_name ⇒ Object
Returns the value of attribute method_name.
-
#params ⇒ Object
Returns the value of attribute params.
-
#return_value ⇒ Object
Returns the value of attribute return_value.
Instance Method Summary collapse
Instance Attribute Details
#class_name ⇒ Object
Returns the value of attribute class_name
5 6 7 |
# File 'lib/rails_tracepoint_stack/trace_record.rb', line 5 def class_name @class_name end |
#depth ⇒ Object
Returns the value of attribute depth
5 6 7 |
# File 'lib/rails_tracepoint_stack/trace_record.rb', line 5 def depth @depth end |
#exception_class ⇒ Object
Returns the value of attribute exception_class
5 6 7 |
# File 'lib/rails_tracepoint_stack/trace_record.rb', line 5 def exception_class @exception_class end |
#exception_message ⇒ Object
Returns the value of attribute exception_message
5 6 7 |
# File 'lib/rails_tracepoint_stack/trace_record.rb', line 5 def @exception_message end |
#file_path ⇒ Object
Returns the value of attribute file_path
5 6 7 |
# File 'lib/rails_tracepoint_stack/trace_record.rb', line 5 def file_path @file_path end |
#kind ⇒ Object
Returns the value of attribute kind
5 6 7 |
# File 'lib/rails_tracepoint_stack/trace_record.rb', line 5 def kind @kind end |
#line_number ⇒ Object
Returns the value of attribute line_number
5 6 7 |
# File 'lib/rails_tracepoint_stack/trace_record.rb', line 5 def line_number @line_number end |
#method_name ⇒ Object
Returns the value of attribute method_name
5 6 7 |
# File 'lib/rails_tracepoint_stack/trace_record.rb', line 5 def method_name @method_name end |
#params ⇒ Object
Returns the value of attribute params
5 6 7 |
# File 'lib/rails_tracepoint_stack/trace_record.rb', line 5 def params @params end |
#return_value ⇒ Object
Returns the value of attribute return_value
5 6 7 |
# File 'lib/rails_tracepoint_stack/trace_record.rb', line 5 def return_value @return_value end |
Instance Method Details
#call? ⇒ Boolean
18 19 20 |
# File 'lib/rails_tracepoint_stack/trace_record.rb', line 18 def call? kind == :call end |
#raise? ⇒ Boolean
26 27 28 |
# File 'lib/rails_tracepoint_stack/trace_record.rb', line 26 def raise? kind == :raise end |
#return? ⇒ Boolean
22 23 24 |
# File 'lib/rails_tracepoint_stack/trace_record.rb', line 22 def return? kind == :return end |