Method: Magick::Draw#push
- Defined in:
- lib/rmagick_internal.rb
#push(*what) ⇒ Object
Push the current set of drawing options. Also you can use push(‘graphic-context’) (the default if no arguments) push(‘defs’) push(‘gradient’) push(‘pattern’)
527 528 529 530 531 532 533 534 |
# File 'lib/rmagick_internal.rb', line 527 def push(*what) if what.length.zero? primitive 'push graphic-context' else # to_s allows a Symbol to be used instead of a String primitive 'push ' + what.map(&:to_s).join(' ') end end |