lib/Base/SVGContainer.rb
#The following methods are for adding shapes, etc. Initially I
#tried metaprogramming these methods, but it doesn't work well
#due to the difficulties of using block_given? and yield inside
#define_method. Thus we need to write all the methods out "long
# hand". At least this is better for generating documentation.
The following methods are for adding shapes, etc. Initially I
tried metaprogramming these methods, but it doesn't work well
due to the difficulties of using block_given. and yield inside
define_method. Thus we need to write all the methods out "long
hand". At least this is better for generating documentation.
The following methods are for adding shapes etc . Initially I tried metaprogramming these methods but it doesn ' t work well due to the difficulties of using block_given . and yield inside define_method . Thus we need to write all the methods out " long hand " . At least this is better for generating documentation .
def rect(*args)
			s = SVG::Rect.new(*args)
			yield s if block_given?	
			@svg_objects << s
			return s 
		end
def rect ( * args ) s = SVG :: Rect . new ( * args ) yield s if block_given? @svg_objects << s return s end
The following methods are for adding shapes, etc.
The following methods are for adding shapes etc .
args