Skip to content
instance method

SyntaxSuggest::CodeBlock#<=>

<=>(other)

This is used for frontier ordering, we are searching from the largest indentation to the smallest. This allows us to populate an array with multiple code blocks then call sort! on it without having to specify the sorting criteria

See also .new #current_indent #delete also in 3.4 · 3.3 · 3.2