def gtfo raise "FUCK!"end def bar(foo) return (foo or gtfo)end p bar(42)p bar(nil)
Standard input is empty
42
prog.rb:2:in `gtfo': FUCK! (RuntimeError) from prog.rb:6:in `bar' from prog.rb:10:in `<main>'
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!