struct

Backtracer::Backtrace::Frame::Context

Inherits Struct < Value < Object

Constructors

new(lineno : Int32, pre : Array(String), line : String, post : Array(String))
Source

Instance methods

line

The line at lineno.

Source
lineno

The line number this Context refers to.

Source
post

An array of lines after lineno.

Source
pre

An array of lines before lineno.

Source
to_a

Returns an array composed of context lines from pre, line and post.

Source
to_h

Returns hash with context lines, where line numbers are the keys and the lines itself are the values.

Source