Skip to content
instance method

SyntaxSuggest::AroundBlockScan#scan_adjacent_indent

scan_adjacent_indent

Scan blocks based on indentation of next line above/below block

Determines indentaion of the next line above/below the current block.

Normally this is called when a block has expanded to capture all “neighbors” at the same (or greater) indentation and needs to expand out. For example the def/end lines surrounding a method.