From: Eric Hodel Date: 2006-08-04T17:09:57+09:00 Subject: [PATCH] IRB change for RDoc workaround --Apple-Mail-1-278131288 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed RDoc chokes on the following code: module SomeReallyLongName SRLN = SomeReallyLongName def SRLN.blah I would like to commit this patch along with Hugh's .document cleanup that will convert 'def SRLN.blah' to 'def self.blah' to HEAD and 1_8. --Apple-Mail-1-278131288 Content-Transfer-Encoding: 7bit Content-Type: application/octet-stream; x-unix-mode=0644; name=irb.self.patch Content-Disposition: attachment; filename=irb.self.patch Index: lib/irb/extend-command.rb =================================================================== RCS file: /src/ruby/lib/irb/extend-command.rb,v retrieving revision 1.7 diff -u -r1.7 extend-command.rb --- lib/irb/extend-command.rb 13 Apr 2005 15:27:07 -0000 1.7 +++ lib/irb/extend-command.rb 4 Aug 2006 08:08:08 -0000 @@ -106,14 +106,14 @@ ] - def EXCB.install_extend_commands + def self.install_extend_commands for args in @EXTEND_COMMANDS def_extend_command(*args) end end # aliases = [commans_alias, flag], ... - def EXCB.def_extend_command(cmd_name, cmd_class, load_file = nil, *aliases) + def self.def_extend_command(cmd_name, cmd_class, load_file = nil, *aliases) case cmd_class when Symbol cmd_class = cmd_class.id2name @@ -172,7 +172,7 @@ "irb_" + method_name + "_org" end - def EXCB.extend_object(obj) + def self.extend_object(obj) unless (class<