Class: FuPeg::Parser::Position

Inherits:
Struct
  • Object
show all
Defined in:
lib/fupeg/parser.rb

Overview

Position handling for failures

Instance Attribute Summary collapse

Instance Attribute Details

#charposObject

Returns the value of attribute charpos

Returns:

  • (Object)

    the current value of charpos



119
120
121
# File 'lib/fupeg/parser.rb', line 119

def charpos
  @charpos
end

#colnoObject

Returns the value of attribute colno

Returns:

  • (Object)

    the current value of colno



119
120
121
# File 'lib/fupeg/parser.rb', line 119

def colno
  @colno
end

#lineObject

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



119
120
121
# File 'lib/fupeg/parser.rb', line 119

def line
  @line
end

#linenoObject

Returns the value of attribute lineno

Returns:

  • (Object)

    the current value of lineno



119
120
121
# File 'lib/fupeg/parser.rb', line 119

def lineno
  @lineno
end