18
2
Ruby comes with a built-in REPL, which is quite handy.
Your challenge is to crash it in the least amount of code!
The definition of "crash" is "make it exit in an unintended way." This means exit
, quit
, abort
, irb_exit
, irb_quit
, et. al. are not valid answers.
Furthermore, you may not cause any side-effect to any other part of the system. For example, `rm -rf /`
is not valid either.
Any version 1.9.3 or above is valid. If your code only works on a specific version of Ruby, you may specify that in the answer.
The final restriction is that you may not rely on any gems.
This is code-golf, so the shortest code that crashes IRB will win!
"The definition of 'crash' is 'make it exit in an unintended way.'" How are we supposed to write code intended to do something unintended? I vote to close as unclear what you're asking. – msh210 – 2016-07-21T15:06:33.487
I can haz golfscript anser, plz? – Digital Trauma – 2014-02-27T15:33:21.827
3wow. i don't know ruby, and after reading these answers i'll never learn it. – izabera – 2014-02-27T19:36:59.993