lib/Base/SVGObject.rb
def attributes_string
			#note that underscores are converted to hyphens. Quotes are entity encoded
			attrs = @attributes.reject{|k,v| v.nil?}.map do |k,v|
				vv = escape_quote v.to_s
				kk = k.to_s.gsub('_', '-')
				%Q[#{kk}="#{vv}"]
			end
			
			return attrs.join(' ')
		end
#helper methods which will be used in to_xml
helper methods which will be used in to_xml
helper methods which will be used in to_xml
def attributes_string
			attrs = @attributes.reject{|k,v| v.nil?}.map do |k,v|
				vv = escape_quote v.to_s
				kk = k.to_s.gsub('_', '-')
				%Q[#{kk}="#{vv}"]
			end
			return attrs.join(' ')
		end
def attributes_string attrs = @attributes . reject { | k , v | v . nil? } . map do | k , v | vv = escape_quote v . to_s kk = k . to_s . gsub ( '_' , '-' ) %Q[#{kk}="#{vv}"] end return attrs . join ( ' ' ) end
helper methods which will be used in to_xml
helper methods which will be used in to_xml
#note that underscores are converted to hyphens. Quotes are entity encoded