Skip to content

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

instance method

SyntaxSuggest::CleanDocument#take_while_including

take_while_including(range = 0..) { |line)| ... }

Helper method for grabbing elements from document

Like take_while except when it stops iterating, it also returns the line that caused it to stop

See also #lines #to_s #join_trailing_slash! also in 4.0 · 3.3 · 3.2