class Phantom::SVG::Parser::AbstractImageWriter
Image writer.
Public Class Methods
new(path = nil, object = nil)
click to toggle source
Construct AbstractImageWriter
object.
# File lib/phantom/parser/abstract_image_writer.rb, line 7 def initialize(path = nil, object = nil) write(path, object) end
Public Instance Methods
write(_path, _object)
click to toggle source
Write image file from object to path. Return write size.
# File lib/phantom/parser/abstract_image_writer.rb, line 13 def write(_path, _object) fail 'Called abstract method.' end