Method: SVG#rect
- Defined in:
- lib/shapes.rb
#rect(x:, y:, width:, height:, title: "", **args) ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/shapes.rb', line 2 def rect(x:,y:,width:,height:,title: "",**args) @io.print %(<rect x="#{x}" y="#{y}" width="#{width}" height="#{height}" ) print_args(**args) @io.print " >" print_title(title) @io.puts("</rect>") end |