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.



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

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.



115
116
117
# File 'lib/rvg/text.rb', line 115

def parent
  @parent
end