#!/usr/bin/env ruby

@sample = Array(1..10)

pid = Process.fork do
        @sample.delete_at(-1)
        puts "Child:  #@sample"
      end

Process.wait(pid)
puts "Parent: #@sample"

{'avg_line_length': 15.166666666666666, 'max_line_length': 31, 'alphanum_fraction': 0.5879120879120879, 'licenses': ['MIT'], 'repository_name': 'abhishekkr/tutorials_as_code', 'path': 'talks-articles/languages-n-runtimes/ruby/DenverRubyConf2012_GrowUnixBeard/c02_mem_n_fork.rb', 'size': 182, 'lang': 'Ruby'}