Class: Rcov::CallSiteAnalyzer::CallSite

Class | Rcov::CallSiteAnalyzer::CallSite
In: | lib/rcov.rb
Parent: | Struct.new(:backtrace)

Object representing a method call site. It corresponds to a part of the callstack starting from the context that called the method.

### Methods

calling_class calling_method depth file line

### Public Instance methods

calling_class(level = 0)

Name of the class holding the method where the call originated. Might return `nil` if it could not be determined.

calling_method(level = 0)

Name of the method where the call originated. Returns `nil` if the call originated in `toplevel`. Might return `nil` if it could not be determined.

depth()

whose information is included in the CallSite object.

file(level = 0)

File where the method call originated. Might return `nil` or "" if it is not meaningful (C extensions, etc).

line(level = 0)

Line where the method call originated. Might return `nil` or 0 if it is not meaningful (C extensions, etc).

[Validate]