Flowdock
tokenize(src, filename = '-', lineno = 1) public

Tokenizes the Ruby program and returns an array of strings.

p Ripper.tokenize("def m(a) nil end")
   # => ["def", " ", "m", "(", "a", ")", " ", "nil", " ", "end"]
Show source
Register or log in to add new notes.