Java Virtal Machine.net

[ News ] rss

July 13, 2007

Enterprise Systems: The New Bounce in Sun’s Step. Don’t look now, but Sun Microsystems Inc. has a new bounce in its step. From its recent...

More »

June 24, 2007

Jazoon'07. Jazoon'07 brings together experts and users of Java and open source technologies from all...

More »

February/2007
SunMonTueWedThuFriSat
    123
45678910
11121314151617
18192021222324
25262728   

[ Archives News ]

home > news > developers > ruby screenshot of the week #4

Ruby Screenshot of the Week #4

If you try code completion on any complicated arbitrary expression, it will show you a number of possible method completions along with the corresponding class. This gives you much the same information as ri: However, in many contexts, we know the exact type. For example, if you type File. and invoke code completion, NetBeans will show you only the singleton methods of class File (as well as inherited methods and module mixins): In some cases, we know more than just the class - we know that we're dealing with an instance of that object. In that case we can show all the instance methods too - not just the class methods: Here's we're applying code completion on a regular expression literal. This works for all kinds of literals in your code - Strings, regular expressions (shown above), arrays (try [1,2,3].e to see the each method and its documentation for example), hashes, symbols, numbers, ... you can even try it on the "nil" keyword!


Date: February 20, 2007
Category: Developers

More »


Others News

©2002-2008Java-Virtual-Machine.net :Java Archive: :Solve Crosswords de fr ru: :Free PC Download: :Micrometer: