Class: FbUtils::Writer::Txt
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
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 |