Sha256: 2a2ffc72bd1a610ac2c3ce6f8cf2bae1d94da75fbc4251203b32951a7d1b5a54

Contents?: true

Size: 253 Bytes

Versions: 2

Compression:

Stored size: 253 Bytes

Contents

#!/usr/bin/env ruby

require "rubygems"
require "ruby_process"

RubyProcess.new.spawn_process do |rp|
  rp.static(:Object, :require, "csv")

  rp.static(:CSV, :open, "test.csv", "w") do |csv|
    csv << ["ID", "Name"]
    csv << [1, "Kasper"]
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
ruby_process-0.0.13 examples/example_csv.rb
RubyProcess-0.0.12 examples/example_csv.rb