Once we have written our code, good developers continue to refine that code using techniques called refactoring. RubyMine has some excellent tools to help us with that task. In addition, there are database, method, and class viewers and hierarchies. These tools can also help us in locating duplicate code and variables using advanced searching techniques.
HelloWorld project that we created earlier in RubyMine.
We will begin with how to refactor some code into a method:
helloworld.rbfile from the project window on the left. We will need to fix a bug in the code first and then we will refactor some of the code into a method that we can reuse later. ...