Class: Dieses::Application::Pen
- Inherits:
-
Object
- Object
- Dieses::Application::Pen
- Defined in:
- lib/dieses/application/pen.rb
Defined Under Namespace
Classes: Draw
Instance Attribute Summary collapse
-
#canvas ⇒ Object
readonly
Returns the value of attribute canvas.
Instance Method Summary collapse
- #draw(unit:, multiple: 1, &block) ⇒ Object
-
#initialize(canvas) ⇒ Pen
constructor
A new instance of Pen.
Constructor Details
#initialize(canvas) ⇒ Pen
Returns a new instance of Pen.
8 9 10 |
# File 'lib/dieses/application/pen.rb', line 8 def initialize(canvas) @canvas = canvas end |
Instance Attribute Details
#canvas ⇒ Object (readonly)
Returns the value of attribute canvas.
6 7 8 |
# File 'lib/dieses/application/pen.rb', line 6 def canvas @canvas end |