Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module Mod
- alias_method :orig_exit, :exit
- def exit(code=0)
- puts "Exiting with code #{code}"
- orig_exit(code)
- end
- end
- include Mod
- exit(99)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement