class GerbilCharts::SVGDC::SVGText
SVGText
¶ ↑
A line of text
Attributes
str[R]
x[R]
y[R]
Public Class Methods
new(x,y,str)
click to toggle source
Calls superclass method
GerbilCharts::SVGDC::SVGElement::new
# File lib/gerbilcharts/svgdc/svg_text.rb, line 9 def initialize(x,y,str) super() @x,@y,@str=x,y,str end
Public Instance Methods
render(xfrag)
click to toggle source
# File lib/gerbilcharts/svgdc/svg_text.rb, line 14 def render(xfrag) h= { :x => @x, :y => @y} render_base(xfrag) { xfrag.text(@str, h.merge(render_attributes)) } end