Class: KPeg::Position::KpegPosInfo

Inherits:
Struct
  • Object
show all
Defined in:
lib/kpeg/position.rb

Instance Attribute Summary collapse

Instance Attribute Details

#char ⇒ Object

Returns the value of attribute char

Returns:

  • (Object) —

    the current value of char



51
52
53
# File 'lib/kpeg/position.rb', line 51

def char
  @char
end

#col ⇒ Object

Returns the value of attribute col

Returns:

  • (Object) —

    the current value of col



51
52
53
# File 'lib/kpeg/position.rb', line 51

def col
  @col
end

#line ⇒ Object

Returns the value of attribute line

Returns:

  • (Object) —

    the current value of line



51
52
53
# File 'lib/kpeg/position.rb', line 51

def line
  @line
end

#lno ⇒ Object

Returns the value of attribute lno

Returns:

  • (Object) —

    the current value of lno



51
52
53
# File 'lib/kpeg/position.rb', line 51

def lno
  @lno
end

#pos ⇒ Object

Returns the value of attribute pos

Returns:

  • (Object) —

    the current value of pos



51
52
53
# File 'lib/kpeg/position.rb', line 51

def pos
  @pos
end