class Rasem::SVGGradient

SVG base gradient element, with ruby methods to describe the gradient

Public Instance Methods

fill() click to toggle source
# File lib/rasem/svg_image.rb, line 718
def fill
  "url(##{@attributes[:id]})"
end
stop(offset, color, opacity) click to toggle source
# File lib/rasem/svg_image.rb, line 723
def stop(offset, color, opacity)
  append_child(Rasem::SVGTag.new("stop", "offset" => offset, "stop-color" => color, "stop-opacity" => opacity))
end