Class: XRay::Position

Inherits:
Struct
  • Object
show all
Defined in:
lib/position_info.rb,
lib/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/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/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/position_info.rb', line 3

def row
  @row
end

Instance Method Details

#to_sObject



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

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