IRB console in RubyMine is a quick way to execute Ruby code.
Here is a quick hint on how you can quickly execute some code from the editor.
- Tools | Start the IRB console
- Select a code
- Tools | Load selected text/file in IRB console (⌥⇧L/Alt+Shift+L)
As you may have guessed from the menu item title, you can execute the whole file, without selecting any code. Try it!