RubyMine 7.0.0 Web Help

RubyMine enables you to quickly unwrap or extract expressions from the enclosing statements. This action is available for:

To unwrap or remove a statement
  1. Place the caret on the expression you want to extract or unwrap.
  2. Choose Code | Unwrap/Remove on the main menu or press Ctrl+Shift+DeleteCtrl+Shift+DeleteCtrl+Shift+DeleteCtrl+Shift+DeleteCtrl+Shift+DeleteCtrl+Shift+DeleteCtrl+Shift+DeleteAlt+RShift+Meta+DeleteShift Command DeleteShift Command DeleteShift Command DeleteShift Command Delete. RubyMine shows a pop-up window with all the actions that are available in the current context. Statements to be extracted are displayed on the blue background, statements to be removed are displayed on the grey background.

    ruby_unwrap_statement

  3. Click the desired action or select it using the up and down arrow keys and press EnterEnterEnterEnterEnterEnterEnterEnterEnterEnterEnterEnterEnter.

See Also

Concepts:

Procedures:

Web Resources: