Skip to content
instance method

Prism::Translation::Ripper#dedent_string

dedent_string(string, width)

This method is provided by the Ripper C extension. It is called when a string needs to be dedented because of a tilde heredoc. It is expected that it will modify the string in place and return the number of bytes that were removed.