class

Asciidoctor::SourceLocation

Inherits Reference < Object

Tracks the file and line number of a node in the AsciiDoc source. Only populated when the sourcemap option is enabled.

Constructors

new(file : String | Nil = nil, lineno : Int32 = 0, dir : String | Nil = nil, path : String | Nil = nil)
Source

Instance methods

advance(count : Int32 = 1)
Source
dir=(dir : String | Nil)
Source
dup

Returns a shallow copy of this object.

This allocates a new object and copies the contents of self into it.

Source
file
Source
file=(file : String | Nil)
Source
lineno
Source
lineno=(lineno : Int32)
Source
path
Source
path=(path : String | Nil)
Source
to_s(io : IO) : Nil

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>
Source