class Scale::SVG
Attributes
height[RW]
width[RW]
Public Class Methods
new(width: nil, height: nil)
click to toggle source
# File lib/scale/svg.rb, line 8 def initialize(width: nil, height: nil) @width, @height = width, height end
Private Instance Methods
attributes()
click to toggle source
# File lib/scale/svg.rb, line 18 def attributes attributes = { version: "1.1", baseProfile: "full", xmlns: "http://www.w3.org/2000/svg", } attributes[:width] = width unless width.nil? attributes[:height] = height unless height.nil? attributes end
xml_tag()
click to toggle source
# File lib/scale/svg.rb, line 14 def xml_tag :svg end