Advertisement
Guest User

Untitled

a guest
Mar 26th, 2013
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.15 KB | None | 0 0
  1. module Mod
  2.   alias_method :orig_exit, :exit
  3.   def exit(code=0)
  4.     puts "Exiting with code #{code}"
  5.     orig_exit(code)
  6.   end
  7. end
  8. include Mod
  9. exit(99)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement