Class: CorrectHorseBatteryStaple::Writer::Marshal
- Inherits:
-
File
- Object
- CorrectHorseBatteryStaple::Writer
- Base
- File
- CorrectHorseBatteryStaple::Writer::Marshal
- Defined in:
- lib/correct_horse_battery_staple/writer/marshal.rb
Instance Attribute Summary
Attributes inherited from File
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(dest, options = {}) ⇒ Marshal
constructor
A new instance of Marshal.
- #write_corpus(corpus) ⇒ Object
Methods inherited from File
Methods inherited from Base
Methods included from Common
#array_sample, #logger, #random_in_range, #random_number, #set_sample
Methods inherited from CorrectHorseBatteryStaple::Writer
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, ={}) 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 |