class DataSpork::BaseWriter
Attributes
owner[R]
started[RW]
Public Class Methods
new(owner)
click to toggle source
# File lib/data_spork/base_writer.rb, line 9 def initialize(owner) @owner = owner @started = false end
Public Instance Methods
begin_put_row()
click to toggle source
# File lib/data_spork/base_writer.rb, line 28 def begin_put_row # override this end
end_put_row()
click to toggle source
# File lib/data_spork/base_writer.rb, line 36 def end_put_row # override this end
finish()
click to toggle source
Close out the document.
# File lib/data_spork/base_writer.rb, line 41 def finish # override this end
put_column()
click to toggle source
# File lib/data_spork/base_writer.rb, line 32 def put_column # override this end
start()
click to toggle source
Start the document output - subclasses usually override :start_document instead.
# File lib/data_spork/base_writer.rb, line 19 def start start_document self.started = true end
start_document()
click to toggle source
# File lib/data_spork/base_writer.rb, line 24 def start_document # override this end
started?()
click to toggle source
# File lib/data_spork/base_writer.rb, line 14 def started? started end