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.
请先登录再写评论。
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
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.
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