Class: SVGPlot::LinearGradient

Inherits:
Gradient show all
Defined in:
lib/svgplot/gradient.rb

Overview

linear gradient element

Instance Attribute Summary

Attributes inherited from ChildTag

#img

Attributes inherited from Tag

#attributes, #children, #defaults, #tag

Instance Method Summary collapse

Methods inherited from Gradient

#fill, #stop

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

#expand

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