Class: CorrectHorseBatteryStaple::Writer::Marshal

Inherits:
File show all
Defined in:
lib/correct_horse_battery_staple/writer/marshal.rb

Instance Attribute Summary

Attributes inherited from File

#io

Attributes inherited from Base

#dest, #options

Instance Method Summary collapse

Methods inherited from File

#close

Methods inherited from Base

#close

Methods included from Common

#array_sample, #logger, #random_in_range, #random_number, #set_sample

Methods inherited from CorrectHorseBatteryStaple::Writer

make_writer, write

Constructor Details

#initialize(dest, options = {}) ⇒ Marshal

Returns a new instance of Marshal.



3
4
5
# File 'lib/correct_horse_battery_staple/writer/marshal.rb', line 3

def initialize(dest, options={})
  super
end

Instance Method Details

#write_corpus(corpus) ⇒ Object



7
8
9
# File 'lib/correct_horse_battery_staple/writer/marshal.rb', line 7

def write_corpus(corpus)
  write ::Marshal.dump(corpus)
end