Sha256: db0a5b0c57daadbda1d86ef470719d7f28acd742c55c988aa770c0b6139b8a5a

Contents?: true

Size: 353 Bytes

Versions: 12

Compression:

Stored size: 353 Bytes

Contents

# encoding: UTF-8
#
# Base class for Parsers
#
class Sqed::Parser
  attr_accessor :image

  def initialize(image)
    @image = image 
    raise 'no image provided to parser' if @image && !(@image.class.name == 'Magick::Image')
  end

  # TODO: is this required?!j
  # must be provided in subclasses
  def text(section_type: :default)
    nil
  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
sqed-0.3.2 lib/sqed/parser.rb
sqed-0.3.1 lib/sqed/parser.rb
sqed-0.3.0 lib/sqed/parser.rb
sqed-0.2.4 lib/sqed/parser.rb
sqed-0.2.3 lib/sqed/parser.rb
sqed-0.2.2 lib/sqed/parser.rb
sqed-0.2.1 lib/sqed/parser.rb
sqed-0.2.0 lib/sqed/parser.rb
sqed-0.1.9 lib/sqed/parser.rb
sqed-0.1.8 lib/sqed/parser.rb
sqed-0.1.7 lib/sqed/parser.rb
sqed-0.1.6 lib/sqed/parser.rb