Class: FbUtils::Writer::Txt

Inherits:
Base
  • Object
show all
Defined in:
lib/fb_utils/writers/txt.rb

Instance Attribute Summary

Attributes inherited from Base

#filename, #options

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from FbUtils::Writer::Base

Instance Method Details

#write(arr) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/fb_utils/writers/txt.rb', line 4

def write(arr)
  File.open(@filename, "w") do |f|
    arr.each{ |a|
      f.puts a.to_array.join(' ')
    }
  end
end