| Class | Wee::Brush |
| In: |
lib/wee/html_brushes.rb
|
| Parent: | Object |
| canvas | [RW] | |
| document | [RW] |
This method is called right after initialize. It‘s only here to simplify the implementation of Brushes, mainly to avoid passing all those arguments to super.
There is a bit of redundancy with canvas and document here. It‘s there to avoid method calls.
A brush is considered to be closed, when @document is nil.
# File lib/wee/html_brushes.rb, line 15 def setup(canvas, document) @canvas = canvas @document = document end