Skip to content

End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

class method

Ripper.dedent_string

Ripper.dedent_string(input, width) → Integer

USE OF RIPPER LIBRARY ONLY.

Strips up to width leading whitespaces from input, and returns the stripped column width.

See also #dedent_string .lex .lex_state_name also in 3.1 · 3.0