Scruffy - how to assign SVG Builder object


I’m trying to render rectangles and lines. Right now I’m using
Scruffy::Layers::Base to render, but the method


is a little confusing.

“svg: a Builder object to use for creating SVG code.”

Anyone has idea of what parameter to pass?
I’ve googled a lot but still got no answers or tutorials.

Best regards.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs