[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.
[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:
This patch simplifies it while displaying more helpful message when rdoc
couldn't be loaded.