Class: Magick::RVG::Tref

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

Overview

:nodoc:

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(obj, x, y, parent) ⇒ Tref

Returns a new instance of Tref.


109
110
111
112
113
114
# File 'lib/rvg/text.rb', line 109

def initialize(obj, x, y, parent)
    @x, @y = Magick::RVG.convert_to_float(x, y, :allow_nil)
    super(nil)
    @tspans << obj
    @parent = parent
end