Class: SVG::RVGBrowser

Inherits:
Browser show all
Defined in:
lib/svg-render.rb

Instance Attribute Summary

Attributes inherited from Browser

#doc

Instance Method Summary collapse

Constructor Details

#initialize(o = {}) ⇒ RVGBrowser

Returns a new instance of RVGBrowser.



22
23
24
# File 'lib/svg-render.rb', line 22

def initialize(o={})
  super(o) {|env| env.load_renderer RVGShape::Shape.new}
end

Instance Method Details

#load_page(svg_file_name) ⇒ Object



26
27
28
29
30
# File 'lib/svg-render.rb', line 26

def load_page(svg_file_name)
  super(svg_file_name) do |doc|
	yield(doc)
  end
end