-
Notifications
You must be signed in to change notification settings - Fork 463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tree_view method #561
Add tree_view method #561
Conversation
So this is a pretty print kind of thing? It looks nice |
Yes a friend of mine is using this gem for nesting components and wanted a better way of debuggin the tree. Hope it gets added to the main repo |
git history can point people to any issues handled by this pr
thanks |
Hello @kbrock I dont have any Docs but the basic idea is to call the method tree_view and pass a symbold that is a property od the class you are using. like in the first coment. Class Message has two atributes id and content, So you could call the result is built with the toString() of whaterever atribute you passed to the method hope my awnser is sufficent, |
I unfortunantly get:
Here is the (commented out!) use of this command: https://github.com/o19s/quepid/blob/ancestry_column_too_short/test/integration/tries_ancestry_lifecycle_test.rb#L21 |
@epugh I'm curious, is the also the use of the Could you paste the code that is failing for you? |
* added strategy: materialized_path2 stefankroes#571 * Added tree_view method stefankroes#561 (thx @Bizcho) * Fixed bug when errors would not undo callbacks stefankroes#566 (thx @daniloisr) * ruby 3.0 support * rails 7.0 support (thx @chenillen, @petergoldstein) * Documentation fixes (thx @benkoshy, @mijoharas)
This adds the funcionality for: #559.
For Example:
arrange method:
tree_view method: