Class: Laser::Cutter::Face

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/laser-cutter/face.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rect, edges = []) ⇒ Face

Returns a new instance of Face.



11
12
13
14
# File 'lib/laser-cutter/face.rb', line 11

def initialize(rect, edges = [])
  self.rect  = rect
  self.edges = edges
end

Instance Attribute Details

#edgesObject

Returns the value of attribute edges.



8
9
10
# File 'lib/laser-cutter/face.rb', line 8

def edges
  @edges
end

#rectObject

Returns the value of attribute rect.



8
9
10
# File 'lib/laser-cutter/face.rb', line 8

def rect
  @rect
end