examples/constitute.rb in rmagick-2.13.4 vs examples/constitute.rb in rmagick-2.14.0

- old
+ new

@@ -1,7 +1,7 @@ -#! /usr/local/bin/ruby -w -require 'RMagick' +#!/usr/bin/env ruby -w +require 'rmagick' -f = Magick::Image.read("../doc/ex/images/Flower_Hat.jpg").first -pixels = f.dispatch(0,0,f.columns, f.rows, "RGB") -image = Magick::Image.constitute(f.columns, f.rows, "RGB", pixels) -image.write("constitute.miff") +f = Magick::Image.read('../doc/ex/images/Flower_Hat.jpg').first +pixels = f.dispatch(0,0,f.columns, f.rows, 'RGB') +image = Magick::Image.constitute(f.columns, f.rows, 'RGB', pixels) +image.write('constitute.miff')