Many Ruby constructs are delimited by an opening keyword and a closing end – for example: class..end, module..end, def..end, while..end and until..end. You can move your cursor between an opening keyword and the matching end using the same key combination used for bracket matching: CTRL+].

See Also
Editing
Bracket Matching