Top Level Namespace

Defined Under Namespace

Modules: Gems

Instance Method Summary collapse

Instance Method Details

#write_csv(path, recs) ⇒ Object

move to cocos - upstream - why? why not?



5
6
7
8
9
10
11
12
13
14
# File 'lib/gemverse.rb', line 5

def write_csv( path, recs )
  buf = String.new
  buf << recs[0].join( ', ' )
  buf << "\n"
  recs[1..-1].each do |values|
    buf << values.join( ', ' )
    buf << "\n"
  end
  write_text( path, buf )
end