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:


11
12
13
14
15
# File 'lib/rvg/transformable.rb', line 11

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