Sha256: 930ae68e63699d42380e228541a7e32e2de83afaf7ab8709fdb4649f5c3a0880

Contents?: true

Size: 509 Bytes

Versions: 6

Compression:

Stored size: 509 Bytes

Contents

#
# Base class for all writers
#

class CorrectHorseBatteryStaple::Writer::Base < CorrectHorseBatteryStaple::Writer
  include CorrectHorseBatteryStaple::Common

  attr_accessor :dest, :options

  def initialize(dest, options = {})
    self.dest    = dest
    self.options = options
    initialize_backend_variables if respond_to?(:initialize_backend_variables)
  end

  def write_corpus(corpus)
    raise NotImplementedError, "#{self.class.name} is not a complete implementation"
  end

  def close
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
correct-horse-battery-staple-0.6.6 lib/correct_horse_battery_staple/writer/base.rb
correct-horse-battery-staple-0.6.5 lib/correct_horse_battery_staple/writer/base.rb
correct-horse-battery-staple-0.6.4 lib/correct_horse_battery_staple/writer/base.rb
correct-horse-battery-staple-0.6.3 lib/correct_horse_battery_staple/writer/base.rb
correct-horse-battery-staple-0.6.2 lib/correct_horse_battery_staple/writer/base.rb
correct-horse-battery-staple-0.6.1 lib/correct_horse_battery_staple/writer/base.rb