method

parse

ruby latest stable - Class: Ripper
parse(src, filename = '(ripper)', lineno = 1)
public

Parses the given Ruby program read from src. src must be a String or an IO or a object with a #gets method.