Class: RailsTracepointStack::TraceRecord

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#class_nameObject

Returns the value of attribute class_name

Returns:

  • (Object)

    the current value of class_name



5
6
7
# File 'lib/rails_tracepoint_stack/trace_record.rb', line 5

def class_name
  @class_name
end

#depthObject

Returns the value of attribute depth

Returns:

  • (Object)

    the current value of depth



5
6
7
# File 'lib/rails_tracepoint_stack/trace_record.rb', line 5

def depth
  @depth
end

#exception_classObject

Returns the value of attribute exception_class

Returns:

  • (Object)

    the current value of exception_class



5
6
7
# File 'lib/rails_tracepoint_stack/trace_record.rb', line 5

def exception_class
  @exception_class
end

#exception_messageObject

Returns the value of attribute exception_message

Returns:

  • (Object)

    the current value of exception_message



5
6
7
# File 'lib/rails_tracepoint_stack/trace_record.rb', line 5

def exception_message
  @exception_message
end

#file_pathObject

Returns the value of attribute file_path

Returns:

  • (Object)

    the current value of file_path



5
6
7
# File 'lib/rails_tracepoint_stack/trace_record.rb', line 5

def file_path
  @file_path
end

#kindObject

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



5
6
7
# File 'lib/rails_tracepoint_stack/trace_record.rb', line 5

def kind
  @kind
end

#line_numberObject

Returns the value of attribute line_number

Returns:

  • (Object)

    the current value of line_number



5
6
7
# File 'lib/rails_tracepoint_stack/trace_record.rb', line 5

def line_number
  @line_number
end

#method_nameObject

Returns the value of attribute method_name

Returns:

  • (Object)

    the current value of method_name



5
6
7
# File 'lib/rails_tracepoint_stack/trace_record.rb', line 5

def method_name
  @method_name
end

#paramsObject

Returns the value of attribute params

Returns:

  • (Object)

    the current value of params



5
6
7
# File 'lib/rails_tracepoint_stack/trace_record.rb', line 5

def params
  @params
end

#return_valueObject

Returns the value of attribute return_value

Returns:

  • (Object)

    the current value of 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

Returns:

  • (Boolean)


18
19
20
# File 'lib/rails_tracepoint_stack/trace_record.rb', line 18

def call?
  kind == :call
end

#raise?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/rails_tracepoint_stack/trace_record.rb', line 26

def raise?
  kind == :raise
end

#return?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/rails_tracepoint_stack/trace_record.rb', line 22

def return?
  kind == :return
end