Class: KPeg::Position::KpegPosInfo

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

Instance Attribute Summary collapse

Instance Attribute Details

#charObject

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

#colObject

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

#lineObject

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

#lnoObject

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

#posObject

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