From: Karl von Laudermann Date: 2005-05-06T03:59:24+09:00 Subject: Re: Ruby Editor Plugin for jEdit 0.6 - method completion release Rob . wrote: > Alex, I don't get an exception in this case, but I see what you mean. > The plugin can easily determine the type of the following and provide > the appropriate method popup list. It should be an easy fix. Are there > any others I'm missing apart from these: > > irb> {}.class > => Hash > > irb> "".class > => String > > irb> ''.class > => String > > irb> [].class > => Array Well, there's this: irb> //.class => Regexp Not to mention all of the % forms: irb> %().class => String irb> %q().class => String irb> %q!!.class => String irb> %Q**.class => String irb> %q .class # Yes, space is a valid delimiter! => String irb> %r##.class => Regexp Including word arrays: irb> %w<>.class => Array See, this is why the ruby.xml file got so huge in version 0.4, when I added support for all of these constructs. BTW, I'm not going to insist that you add support for this one: irb> %x(echo hello).class => String :-) Though, I don't know if it's possible for a system command to return anything other than a string.