Class: SVG::CanvasBrowser
Instance Attribute Summary
Attributes inherited from Browser
Instance Method Summary collapse
-
#initialize(o = {}) ⇒ CanvasBrowser
constructor
A new instance of CanvasBrowser.
- #load_page(svg_file_name) ⇒ Object
Constructor Details
#initialize(o = {}) ⇒ CanvasBrowser
Returns a new instance of CanvasBrowser.
8 9 10 |
# File 'lib/svg-render.rb', line 8 def initialize(o={}) super(o) {|env| env.load_renderer CanvasShape::Shape.new} end |
Instance Method Details
#load_page(svg_file_name) ⇒ Object
12 13 14 15 16 |
# File 'lib/svg-render.rb', line 12 def load_page(svg_file_name) super(svg_file_name) do |doc| yield(doc) end end |