Skip to content
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

Allow any object to override awesome print via #ai #309

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

matrinox
Copy link

Bug fix: Duplicate options before mutating it

Changes:

  • calls to inspector.awesome(x) are replaced with x.ai(@options)

I noticed that ai calls inspector.awesome so I figured we can change it #ai without breaking much. I know this way is less efficient but for debugging, it's not going to be a huge concern.

Bug fix: Duplicate options before mutating it
-----------------------------------------------------------
On branch master - Wed 12 Apr 2017 15:18:51 PDT by matrinox <[email protected]>
Only the top layer will wrap code in pre tags (fixed)
The current indentation amount is passed in to the inspector so that new ones will maintain the same indentation
-----------------------------------------------------------
On branch master - Mon 17 Apr 2017 17:40:14 PDT by matrinox <[email protected]>
@thiagofm
Copy link
Collaborator

thiagofm commented Jun 29, 2017

I quite like this change but I would like to hear other opinions on that. In any case, it would be nice to also have this documented.

@matrinox
Copy link
Author

@thiagofm How do you guys do documentation? Let me know and I'll submit it as part of this PR

@matrinox
Copy link
Author

I'm happy with most of the code except one: the top_layer option. It's been a while since I've worked on this but from what I remember, I had to add the top_layer option to get around everything being tagged with <pre> tags after the root layer. Basically, I needed to separate the first call from the subsequent calls but I couldn't do that without more understanding; this was the simplest solution I could come up with.

I'm not too happy with it so I would love to hear how you guys would solve it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants