Class: SVGPlot::SVGTagWithParent
Direct Known Subclasses
Instance Attribute Summary collapse
-
#img ⇒ Object
readonly
Returns the value of attribute img.
Attributes inherited from SVGTag
Instance Method Summary collapse
-
#initialize(img, tag, params = {}, output = nil, &block) ⇒ SVGTagWithParent
constructor
A new instance of SVGTagWithParent.
Methods inherited from SVGTag
#append_child, #linearGradient, #matrix, #merge_defaults, #method_missing, #path, #pop_defaults, #push_defaults, #radialGradient, #raw, #rotate, #scale, #skewX, #skewY, #spawn_child, #to_s, #translate, #use, #validate_attribute, #validate_attributes, #validate_child_name, #validate_tag, #with_style, #write, #write_points, #write_styles, #write_transforms
Constructor Details
#initialize(img, tag, params = {}, output = nil, &block) ⇒ SVGTagWithParent
Returns a new instance of SVGTagWithParent.
300 301 302 303 |
# File 'lib/svgplot/plot.rb', line 300 def initialize(img, tag, params = {}, output=nil, &block) @img = img super(tag, params, &block) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class SVGPlot::SVGTag
Instance Attribute Details
#img ⇒ Object (readonly)
Returns the value of attribute img.
298 299 300 |
# File 'lib/svgplot/plot.rb', line 298 def img @img end |