Class: Svgle::Rect

Inherits:
Element
  • Object
show all
Defined in:
lib/svgle.rb

Instance Method Summary collapse

Instance Method Details

#boundaryObject



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