class Svgle::Rect

Public Instance Methods

boundary() click to toggle source
# File lib/svgle.rb, line 136
def boundary()
  x1, y1, w, h = [x, y, width, height].map(&:to_i)
  [x1, y1, x1+w, y1+h]
end