Class: Rucc::Pos

Inherits:
Object
  • Object
show all
Defined in:
lib/rucc/pos.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(line, column) ⇒ Pos

Returns a new instance of Pos.

Parameters:

  • line (Integer)
  • column (Integer)


5
6
7
8
# File 'lib/rucc/pos.rb', line 5

def initialize(line, column)
  @line = line
  @column = column
end

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column.



9
10
11
# File 'lib/rucc/pos.rb', line 9

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line.



9
10
11
# File 'lib/rucc/pos.rb', line 9

def line
  @line
end