Sha256: 5f0a2aec93d601263379b58ecc804e7fc43f722690cba2f9d8639cda1a1f444d

Contents?: true

Size: 505 Bytes

Versions: 2

Compression:

Stored size: 505 Bytes

Contents

module Phantom
  module SVG
    module Parser
      # Image writer.
      class AbstractImageWriter
        # Construct AbstractImageWriter object.
        def initialize(path = nil, object = nil)
          write(path, object)
        end

        # Write image file from object to path.
        # Return write size.
        def write(path, object)
          fail 'Called abstract method.'
        end
      end # class AbstractImageWriter
    end # module Parser
  end # module SVG
end # module Phantom

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
phantom_svg-1.1.0 lib/phantom/parser/abstract_image_writer.rb
phantom_svg-1.0.5 lib/phantom/parser/abstract_image_writer.rb