You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, Node#inspect is way too verbose. When playing/testing with Ox documents in IRB or using p to debug some program, Ox produces pages and pages of text.
This is mainly due to the expansion of @nodes, maybe #inspect could be changed to print something like:
IMO #inspect doesn't have to dump the entire object, as there already is Ox.dump and it is also easy enough to do doc.nodes.inspect if you really want to know.
The text was updated successfully, but these errors were encountered:
I would rather not change the current behavior as it is useful at times. What I can do though is add an option that can be used to control how verbose the output is. What's you opinion of that alternative?
The current inspect() method is the default method provided by Ruby. I can still add an option for changing the output but it will take a bit more time.
Currently,
Node#inspect
is way too verbose. When playing/testing with Ox documents in IRB or usingp
to debug some program, Ox produces pages and pages of text.This is mainly due to the expansion of
@nodes
, maybe#inspect
could be changed to print something like:IMO
#inspect
doesn't have to dump the entire object, as there already isOx.dump
and it is also easy enough to dodoc.nodes.inspect
if you really want to know.The text was updated successfully, but these errors were encountered: