DEV Community

loading...

Discussion on: Understanding Ruby's block/proc parsing

Collapse
penelope_zone profile image
Penelope Phippen Author

It's a library in Ruby called ripper:

require "ripper"
pp Ripper.sexp("hi")
# => [:program, [[:vcall, [:@ident, "hi", [1,0]]]]]
Collapse
daniel13rady profile image