Class: Magick::RVG::Transforms

Inherits:
Array
  • Object
show all
Defined in:
lib/rvg/transformable.rb

Overview

Transforms is an Array with a deep_copy method. During unit-testing it also has a deep_equal method.

Instance Method Summary collapse

Instance Method Details

#deep_copy(h = nil) ⇒ Object

:nodoc:



13
14
15
16
17
# File 'lib/rvg/transformable.rb', line 13

def deep_copy(h=nil)
    copy = self.class.new
    each { |transform| copy << [transform[0], transform[1].dup] }
    return copy
end