-
Notifications
You must be signed in to change notification settings - Fork 86
(PDOC-129) Include tags in overload objects when serialized as JSON #122
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
(PDOC-129) Include tags in overload objects when serialized as JSON #122
Conversation
This should probably be merged after #119 to prevent a bigger rebasing headache. I'll have to rebase this once that's merged, though. |
6eb2e8b
to
94c06e7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case, "docstring" is a class from YARD correct? It seems like it's confusing that it provides an "empty?" method that doesn't consider tags. :/
@scotje indeed, it's a bit dumb. Actually, we may be able to use the |
Yeah, it looks like |
94c06e7
to
ceb8156
Compare
@scotje updated to use |
Hooray! |
LGTM |
Previously, overload objects were not displaying their tags when they had no docstring text. This was due to an issue in the overload `to_hash` method, which prevented the tags from being serialized when the dispatch had no top-level text. This commit updates that logic so that the tags will always be included in the hash if they exist.
ceb8156
to
c56d9c6
Compare
@scotje rebased! |
Previously, overload objects were not displaying their tags when
they had no docstring text. This was due to an issue in the overload
to_hash
method, which prevented the tags from being serialized whenthe dispatch had no top-level text. This commit updates that logic
so that the tags will always be included in the hash if they exist.