Class: Robot::Table

Inherits:
Object
  • Object
show all
Defined in:
lib/robot/table.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_pointObject (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_pointObject (readonly)

Returns the value of attribute min_point.



7
8
9
# File 'lib/robot/table.rb', line 7

def min_point
  @min_point
end