Class: Tb::LTSVWriter
- Inherits:
-
HashWriter
- Object
- HashWriter
- Tb::LTSVWriter
- Defined in:
- lib/tb/ltsv.rb
Instance Method Summary collapse
-
#initialize(io) ⇒ LTSVWriter
constructor
A new instance of LTSVWriter.
Methods inherited from HashWriter
#finish, #header_generator=, #header_required?, #put_hash
Constructor Details
#initialize(io) ⇒ LTSVWriter
Returns a new instance of LTSVWriter.
145 146 147 148 149 |
# File 'lib/tb/ltsv.rb', line 145 def initialize(io) super lambda {|hash| io << (Tb.ltsv_assoc_join(hash) + "\n") } end |