Class: SVGPlot::LinearGradient
- Defined in:
- lib/svgplot/gradient.rb
Overview
linear gradient element
Instance Attribute Summary
Attributes inherited from ChildTag
Attributes inherited from Tag
#attributes, #children, #defaults, #tag
Instance Method Summary collapse
-
#initialize(img, attributes = {}, &block) ⇒ LinearGradient
constructor
A new instance of LinearGradient.
Methods inherited from Gradient
Methods inherited from ChildTag
#linear_gradient, #radial_gradient
Methods inherited from Tag
#append_child, #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
#initialize(img, attributes = {}, &block) ⇒ LinearGradient
Returns a new instance of LinearGradient.
25 26 27 |
# File 'lib/svgplot/gradient.rb', line 25 def initialize(img, attributes = {}, &block) super(img, 'linearGradient', attributes, &block) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class SVGPlot::Tag