Skip to content

Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →

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 4.0 · 3.4 · 3.2