Class: Svgle::Rect
- Inherits:
-
Shape
- Object
- Element
- SvgElement
- Shape
- Svgle::Rect
- Defined in:
- lib/svgle.rb
Instance Method Summary collapse
Instance Method Details
#boundary ⇒ Object
129 130 131 132 |
# File 'lib/svgle.rb', line 129 def boundary() x1, y1, w, h = [x, y, width, height].map(&:to_i) [x1, y1, x1+w, y1+h] end |