/usr/share/doc/libsvg-ruby1.8/examples/sample2.rb is in libsvg-ruby1.8 1.0.3-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | #==============================================================================#
# sample2.rb
# $Id: sample2.rb,v 1.6 2002/11/19 10:15:34 rcn Exp $
#==============================================================================#
#==============================================================================#
require 'svg/svg'
#==============================================================================#
svg = SVG.new('4in', '4in', '0 0 400 400')
svg << SVG::Line.new(20, 180, 180, 20)
svg << SVG::Polyline.new(SVG::Point[220, 20, 220, 180, 300, 20, 300, 180, 380, 20, 380, 180]) { self.style = SVG::Style.new(:fill => 'none', :stroke => 'black') }
svg << SVG::Polygon.new(SVG::Point[20, 380, 100, 220, 180, 380])
svg << SVG::Image.new(200, 200, 200, 40, 'http://yuya.4th.to/banner.gif')
svg << SVG::Text.new(200, 300, 'Hello! world.')
print svg.to_s
#==============================================================================#
#==============================================================================#
|