Method: Rect#initialize
- Defined in:
- lib/amun/primitives/rect.rb
#initialize(opts = {}) ⇒ Rect
create a rectangle with top, left, width and height
- opts(Hash)
-
a hash with keys (top, left, width, height)
9 10 11 12 13 14 |
# File 'lib/amun/primitives/rect.rb', line 9 def initialize(opts = {}) @top = opts[:top] @left = opts[:left] @width = opts[:width] @height = opts[:height] end |