Class: SVG::RVGBrowser
Instance Attribute Summary
Attributes inherited from Browser
Instance Method Summary collapse
-
#initialize(o = {}) ⇒ RVGBrowser
constructor
A new instance of RVGBrowser.
- #load_page(svg_file_name) ⇒ Object
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 |