class SVGPlot::ChildTag
Child tag, used for tags within another tag
Attributes
img[R]
Public Class Methods
new(img, tag, params = {}, &block)
click to toggle source
Calls superclass method
SVGPlot::Tag::new
# File lib/svgplot/tag.rb, line 95 def initialize(img, tag, params = {}, &block) @img = img super(tag, params, &block) end
Public Instance Methods
linear_gradient(id, attributes = {}, if_exists = :skip, &block)
click to toggle source
# File lib/svgplot/tag.rb, line 100 def linear_gradient(id, attributes = {}, if_exists = :skip, &block) @img.add_def(id, LinearGradient.new(@img, attributes), if_exists, &block) end
radial_gradient(id, attributes = {}, if_exists = :skip, &block)
click to toggle source
# File lib/svgplot/tag.rb, line 104 def radial_gradient(id, attributes = {}, if_exists = :skip, &block) @img.add_def(id, RadialGradient.new(@img, attributes), if_exists, &block) end