RubyMine
 
2021.1
Get RubyMine
You are viewing the documentation for an earlier version of RubyMine.

Inline

Last modified: 08 July 2021

Shortcut: Ctrl+Alt+N

    The Inline refactoring lets you reverse the extract refactoring for variables and methods.

    The animation below demonstrates how to inline a variable to a string:

    https://resources.jetbrains.com/help/img/idea/2021.1/rm_refactoring_inline_variable.png
    Gif

    To inline a variable/method: