Class: Magick::RVG::Tspan

Inherits:
TextBase show all
Includes:
TextLink
Defined in:
lib/rvg/text.rb

Overview

class Tref

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from TextLink

#add_primitives, #cx, #cx=, #cy, #cy=

Methods inherited from TextBase

#add_primitives, #d, #rotate, #tspan

Methods included from Duplicatable

#deep_copy

Methods included from Stylable

#styles

Constructor Details

#initialize(text = nil, x = nil, y = nil, &block) ⇒ Tspan

Define a text segment starting at (x, y). If x and y are omitted the segment starts at the current text position.

Tspan objects can contain Tspan objects.



128
129
130
131
# File 'lib/rvg/text.rb', line 128

def initialize(text=nil, x=nil, y=nil, &block)
    @x, @y = Magick::RVG.convert_to_float(x, y, :allow_nil)
    super(text, &block)
end

Instance Attribute Details

#parentObject

Returns the value of attribute parent.



121
122
123
# File 'lib/rvg/text.rb', line 121

def parent
  @parent
end