Class: Fdlint::Parser::Position

Inherits:
Struct
  • Object
show all
Defined in:
lib/fdlint/parser/position_info.rb,
lib/fdlint/parser/position_info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#columnObject

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



3
4
5
# File 'lib/fdlint/parser/position_info.rb', line 3

def column
  @column
end

#posObject

Returns the value of attribute pos

Returns:

  • (Object)

    the current value of pos



3
4
5
# File 'lib/fdlint/parser/position_info.rb', line 3

def pos
  @pos
end

#rowObject

Returns the value of attribute row

Returns:

  • (Object)

    the current value of row



3
4
5
# File 'lib/fdlint/parser/position_info.rb', line 3

def row
  @row
end

Instance Method Details

#inspectObject



9
10
11
# File 'lib/fdlint/parser/position_info.rb', line 9

def inspect
  "[#{pos}, #{row}:#{column}]"
end

#to_sObject



5
6
7
# File 'lib/fdlint/parser/position_info.rb', line 5

def to_s
    "[#{row},#{column}]"
end