Class: Robot::Table
- Inherits:
-
Object
- Object
- Robot::Table
- Defined in:
- lib/robot/table.rb
Instance Attribute Summary collapse
-
#max_point ⇒ Object
readonly
Returns the value of attribute max_point.
-
#min_point ⇒ Object
readonly
Returns the value of attribute min_point.
Instance Method Summary collapse
-
#initialize(min_point: Point.new(x: 0, y: 0), max_point: Point.new(x: 4, y: 4)) ⇒ Table
constructor
A new instance of Table.
Constructor Details
#initialize(min_point: Point.new(x: 0, y: 0), max_point: Point.new(x: 4, y: 4)) ⇒ Table
Returns a new instance of Table.
9 10 11 12 |
# File 'lib/robot/table.rb', line 9 def initialize(min_point: Point.new(x: 0, y: 0), max_point: Point.new(x: 4, y: 4)) @min_point = min_point @max_point = max_point end |
Instance Attribute Details
#max_point ⇒ Object (readonly)
Returns the value of attribute max_point.
7 8 9 |
# File 'lib/robot/table.rb', line 7 def max_point @max_point end |
#min_point ⇒ Object (readonly)
Returns the value of attribute min_point.
7 8 9 |
# File 'lib/robot/table.rb', line 7 def min_point @min_point end |