Class: Phantom::SVG::Parser::AbstractImageWriter
- Inherits:
-
Object
- Object
- Phantom::SVG::Parser::AbstractImageWriter
- Defined in:
- lib/phantom/parser/abstract_image_writer.rb
Overview
Image writer.
Instance Method Summary collapse
-
#initialize(path = nil, object = nil) ⇒ AbstractImageWriter
constructor
Construct AbstractImageWriter object.
-
#write(_path, _object) ⇒ Object
Write image file from object to path.
Constructor Details
#initialize(path = nil, object = nil) ⇒ AbstractImageWriter
Construct AbstractImageWriter object.
7 8 9 |
# File 'lib/phantom/parser/abstract_image_writer.rb', line 7 def initialize(path = nil, object = nil) write(path, object) end |
Instance Method Details
#write(_path, _object) ⇒ Object
Write image file from object to path. Return write size.
13 14 15 |
# File 'lib/phantom/parser/abstract_image_writer.rb', line 13 def write(_path, _object) fail 'Called abstract method.' end |