Skip to content

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

class method

Ripper.new

Ripper.new(src, filename="(ripper)", lineno=1) → ripper

Create a new Ripper object. src must be a String, an IO, or an Object which has gets method.

This method does not starts parsing. See also Ripper#parse and Ripper.parse.

See also .lex_state_name .parse .lex .sexp also in 3.2 · 3.1