-
-
Notifications
You must be signed in to change notification settings - Fork 397
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
String-symbol parameter defaults are incorrectly shown as identifiers #1256
Labels
Comments
This was referenced Mar 12, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If a string-symbol (
:'foo'
) is used as a default value for a method parameter, then that default is incorrectly converted to a plain identifier (foo
). This was mentioned on an issue on my project which uses YARD's registry.Steps to reproduce
Save the following into a file called
main.rb
.Then:
yardoc main.rb
Actual Output
Expected Output
The signature should have the default as
:'abomination'
rather thanabomination
.Environment details:
ruby -v
):Ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu]
yard -v
):yard 0.9.19
I have read the Contributing Guide.
The text was updated successfully, but these errors were encountered: