Class: Laser::Cutter::Face
- Inherits:
-
Object
- Object
- Laser::Cutter::Face
- Extended by:
- Forwardable
- Defined in:
- lib/laser-cutter/face.rb
Instance Attribute Summary collapse
-
#edges ⇒ Object
Returns the value of attribute edges.
-
#rect ⇒ Object
Returns the value of attribute rect.
Instance Method Summary collapse
-
#initialize(rect, edges = []) ⇒ Face
constructor
A new instance of Face.
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
#edges ⇒ Object
Returns the value of attribute edges.
8 9 10 |
# File 'lib/laser-cutter/face.rb', line 8 def edges @edges end |
#rect ⇒ Object
Returns the value of attribute rect.
8 9 10 |
# File 'lib/laser-cutter/face.rb', line 8 def rect @rect end |