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