Skip to content

Instantly share code, notes, and snippets.

@huseyin
Created March 31, 2015 13:49
Show Gist options
  • Save huseyin/03b9ee55bf9b3b308b79 to your computer and use it in GitHub Desktop.
Save huseyin/03b9ee55bf9b3b308b79 to your computer and use it in GitHub Desktop.
# + Kernel, Ruby method system
# + örnek gösterim
trace_var :$_, proc {|x| puts "$_ is now '#{x}'" }
$_ = "there"
Signal.trap(0, proc { puts "Terminating: #{$$}" })
Signal.trap("CLD") { puts "Child died" }
fork && Process.wait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment