Skip to content

Instantly share code, notes, and snippets.

@RoxasShadow
Created September 20, 2012 19:41
Show Gist options
  • Save RoxasShadow/3757904 to your computer and use it in GitHub Desktop.
Save RoxasShadow/3757904 to your computer and use it in GitHub Desktop.
w = File.open('n00b', ?a)
f = proc { |*a|
w.puts a.join
}
a = f.curry
5.times { |t| a[t] }
w.close
File.read('n00b').each_line { |l| p l.strip }
File.delete('n00b')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment