Refactoring Support

Hi, after watching an screencasts using the IntelliJ IDEA, I would definitely like to see similar refactorings within the RubyMine IDE.  I understand that some of the refactorings may not make sense within Ruby.  However, many of the refactorings do make sense.  For example, Extract Method Object.

3 comments
Comment actions Permalink

Hello Conrad,

I'm just wondering why do you need Extract Method Object refactoring when Ruby supports multiple return values, and extract method refactoring copes well with such cases?

Regards,
Oleg

0
Comment actions Permalink

Extract Method Object is not about returning arguments to the caller in Ruby.  It is about constructing a class from its local variables and making them instance variables on the new class.  Then one can perform further Extract Method operation(s) on this instance method within the new class.

0
Comment actions Permalink

Well, actually this refactoring was designed to emulate multi value returns in Java. However if you miss it RubyMine feel free to create the feature request at: http://youtrack.jetbrains.net/issues/RUBY


Regards,
Oleg

0

Please sign in to leave a comment.