Class: SVGPlot::Gradient
- Defined in:
- lib/svgplot/gradient.rb
Overview
SVG base gradient element, with ruby methods to describe the gradient
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from ChildTag
Attributes inherited from Tag
#attributes, #children, #defaults, #tag
Instance Method Summary collapse
Methods inherited from ChildTag
#initialize, #linear_gradient, #radial_gradient
Methods inherited from Tag
#append_child, #initialize, #method_missing, #path, #raw, #respond_to?, #spawn_child, #to_s, #use, #write
Methods included from Expansion
Methods included from Transform
#matrix, #rotate, #scale, #skew_x, #skew_y, #translate
Constructor Details
This class inherits a constructor from SVGPlot::ChildTag
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class SVGPlot::Tag
Instance Method Details
#fill ⇒ Object
5 6 7 |
# File 'lib/svgplot/gradient.rb', line 5 def fill "url(##{@attributes[:id]})" end |