doc/ex/Use01.rb in rmagick-1.8.3 vs doc/ex/Use01.rb in rmagick-1.9.0

- old
+ new

@@ -1,13 +1,12 @@ require 'rvg/rvg' -include Magick -RVG.dpi = 90 +Magick::RVG.dpi = 90 -rvg = RVG.new(10.cm, 3.cm).viewbox(0, 0, 100, 30) do |canvas| +rvg = Magick::RVG.new(10.cm, 3.cm).viewbox(0, 0, 100, 30) do |canvas| canvas.background_fill = 'white' canvas.desc = "Example Use01 - Simple case of 'use' on a 'rect'" - r = RVG::Group.new do |grp| + r = Magick::RVG::Group.new do |grp| grp.rect(60, 10) end canvas.rect(99.6, 29.6, 0.1, 0.1).styles(:fill=>'none', :stroke=>'blue', :stroke_width=>0.2) canvas.use(r, 20, 10) end