Sha256: 75cf34d5d4360f9da09ace9b79191e70c5cfa01988eb3377376a4f941887c17c
Contents?: true
Size: 322 Bytes
Versions: 5
Compression:
Stored size: 322 Bytes
Contents
#!/usr/bin/env ruby require "rubygems" require "ruby_process" fpath = "/tmp/somefile" Ruby_process.new.spawn_process do |rp| #Opens file in subprocess. rp.static(:File, :open, fpath, "w") do |fp| #Writes to file in subprocess. fp.write("Test!") end end print "Content of '#{fpath}': #{File.read(fpath)}\n"
Version data entries
5 entries across 5 versions & 1 rubygems