Closed DerekStride closed 1 year ago
It took me a while to figure out that you can use PP.pp(node)
to quickly inspect a node. Once you know that this is very easy to use! Might be a good thing to add to the readme or a walkthrough.
I added some documentation before shipping, it's live here: https://shopify.github.io/tree_stand/TreeStand/Utils/Printer.html
What
This PR adds the
#pretty_print(pp)
method powered by an underlyingUtils::Printer
class to encapsulate the printing logic.Other Notes
There's a second commit adding some improvements to
bin/console
into the PR. It runsTreeStand.configure
and creates a parser & a simple tree to facilitate quick experimentation.