struct Backtracer::Backtrace::Frame::Context
- Backtracer::Backtrace::Frame::Context
- Struct
- Value
- Object
Defined in:
backtracer/backtrace/frame/context.crConstructors
Instance Method Summary
-
#line : String
The line at
#lineno
. -
#lineno : Int32
The line number this
Context
refers to. -
#post : Array(String)
An array of lines after
#lineno
. -
#pre : Array(String)
An array of lines before
#lineno
. - #to_a : Array(String)
-
#to_h : Hash(Int32, String)
Returns hash with context lines, where line numbers are the keys and the lines itself are the values.
Constructor Detail
def self.new(lineno : Int32, pre : Array(String), line : String, post : Array(String))
#
Instance Method Detail
def to_a : Array(String)
#
def to_h : Hash(Int32, String)
#
Returns hash with context lines, where line numbers are the keys and the lines itself are the values.