doc/ex/grav.rb in rmagick-2.13.4 vs doc/ex/grav.rb in rmagick-2.14.0

- old
+ new

@@ -1,8 +1,8 @@ -#! /usr/local/bin/ruby -w +#!/usr/bin/env ruby -w -require 'RMagick' +require 'rmagick' imgl = Magick::ImageList.new imgl.new_image(400,200, Magick::HatchFill.new('white', 'lightcyan2')) gc = Magick::Draw.new @@ -37,10 +37,9 @@ gc.text( 0,20, 'SouthGravity') gc.gravity(Magick::SouthEastGravity) gc.text(20,20, 'SouthEastGravity') gc.draw(imgl) -imgl.border!(1,1, "lightcyan2") +imgl.border!(1,1, 'lightcyan2') -imgl.write("grav.gif") +imgl.write('grav.gif') exit -