Project

General

Profile

« Previous | Next » 

Revision 73fc8119

Added by st0012 (Stan Lo) about 2 years ago

[ruby/irb] Simplify the help command's implementation
(https://github.com/ruby/irb/pull/564)

The current method-redefining approach brings little benefit, makes it
harder to understand the code, and causes warnings like:

warning: method redefined; discarding old execute

This patch simplifies it while displaying more helpful message when rdoc
couldn't be loaded.