struct

Haml::Location

Inherits Struct < Value < Object

Locations use 1-based character columns, not byte offsets. The scanner uses Char arrays so a multibyte character never becomes part of a delimiter.

Constructors

new(filename : String, line : Int32 = 1, column : Int32 = 1)
Source

Instance methods

advance(text : String) : Location
Source
column
Source
filename
Source
line
Source
to_s(io : IO) : Nil

Same as #inspect(io).

Source