Class: SVG::CanvasBrowser

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

Instance Attribute Summary

Attributes inherited from Browser

#doc

Instance Method Summary collapse

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