class Asciidoctor::Reader::Cursor - asciidoctor-1.5.6.2 Documentation

# class Asciidoctor::Reader::Cursor

### Attributes

dir[RW]
file[RW]
lineno[RW]
path[RW]

### Public Class Methods

new(file, dir = nil, path = nil, lineno = nil) click to toggle source

    # File lib/asciidoctor/reader.rb, line 10
    def initialize file, dir = nil, path = nil, lineno = nil
      @file = file
      @dir = dir
      @path = path
      @lineno = lineno
    end

### Public Instance Methods

line_info() click to toggle source

    # File lib/asciidoctor/reader.rb, line 17
    def line_info
      %Q(#{path}: line #{lineno})
    end

Also aliased as: to_s
to_s()
Alias for: line_info