extract-method package Extracts selected text to a ruby method. The method is copied to the clipboard to be pasted.