Class: Svgle::Rect

Inherits:
Shape show all
Defined in:
lib/svgle.rb

Instance Method Summary collapse

Instance Method Details

#boundaryObject



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