Class: SVGPlot::SVGRaw
- Inherits:
-
SVGTagWithParent
- Object
- SVGTag
- SVGTagWithParent
- SVGPlot::SVGRaw
- Defined in:
- lib/svgplot/plot.rb
Instance Attribute Summary
Attributes inherited from SVGTagWithParent
Attributes inherited from SVGTag
Instance Method Summary collapse
-
#initialize(img, data) ⇒ SVGRaw
constructor
A new instance of SVGRaw.
- #write(output) ⇒ Object
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_points, #write_styles, #write_transforms
Constructor Details
#initialize(img, data) ⇒ SVGRaw
Returns a new instance of SVGRaw.
313 314 315 316 |
# File 'lib/svgplot/plot.rb', line 313 def initialize(img, data) @img = img @data = data end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class SVGPlot::SVGTag
Instance Method Details
#write(output) ⇒ Object
318 319 320 |
# File 'lib/svgplot/plot.rb', line 318 def write(output) output << @data.to_s end |