Method: Pixelart::ImageComposite#add
- Defined in:
- lib/pixelart/composite.rb
#add(image_or_images) ⇒ Object Also known as: <<
note: allow adding of image OR array of images
107 108 109 110 111 112 113 114 115 |
# File 'lib/pixelart/composite.rb', line 107 def add( image_or_images ) ## note: allow adding of image OR array of images if image_or_images.is_a?( Array ) images = image_or_images images.each { |image| _add( image ) } else image = image_or_images _add( image ) end end |