Class: XRay::Position
- Inherits:
-
Struct
- Object
- Struct
- XRay::Position
- Defined in:
- lib/position_info.rb,
lib/position_info.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
Returns the value of attribute column.
-
#pos ⇒ Object
Returns the value of attribute pos.
-
#row ⇒ Object
Returns the value of attribute row.
Instance Method Summary collapse
Instance Attribute Details
#column ⇒ Object
Returns the value of attribute column
3 4 5 |
# File 'lib/position_info.rb', line 3 def column @column end |
#pos ⇒ Object
Returns the value of attribute pos
3 4 5 |
# File 'lib/position_info.rb', line 3 def pos @pos end |
#row ⇒ Object
Returns the value of attribute row
3 4 5 |
# File 'lib/position_info.rb', line 3 def row @row end |
Instance Method Details
#to_s ⇒ Object
5 6 7 |
# File 'lib/position_info.rb', line 5 def to_s "[#{row},#{column}]" end |