Forum: Ruby-core [Open] irb terminates with no method error

43421679c356f438c69bf6947e62c4ec?d=identicon&s=25 Tsuyoshi S. (tsuyoshi_s)
on 2014-08-29 18:34
(Received via mailing list)
Issue #10184 has been reported by Tsuyoshi Sawada.

----------------------------------------
Bug #10184: irb terminates with no method error
https://bugs.ruby-lang.org/issues/10184

* Author: Tsuyoshi Sawada
* Status: Open
* Priority: Normal
* Assignee:
* Category:
* Target version:
* ruby -v: 2.1.2
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
When I input the following lines in irb, the irb terminates.

~~~
$ irb
irb(main):001:0> def !; end
=> :!
irb(main):002:0> !
/usr/local/lib/ruby/2.1.0/irb/input-method.rb:153:in `gets': private
method `!' called for false:FalseClass (NoMethodError)
...
$
~~~

A corresponding question is posted on StackOverflow at
http://stackoverflow.com/questions/25572126/irb-te....
This topic is locked and can not be replied to.