We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Escaped symbols, or string-symbols, or as I like to call them, 'abominations', don't get sent through to the generated file properly.
Input:
def create_server(name, region = :'eu-central') # code end
Generated rbi method:
def create_server(name, region = eu-central) end
The text was updated successfully, but these errors were encountered:
It looks like this may actually be an issue with YARD itself.
Take the following example code:
module Example class Foo def bar(x = :'abomination') 3 end end end
It appears that the YARD registry (assigned to r here) doesn't include the : and apostrophes around the identifier:
r
:
irb(main):012:0> r.all(:class).first.meths.first.parameters => [["x", "abomination"]]
Sorry, something went wrong.
The generated YARD HTML docs also show the same issue!
This has now been fixed in YARD (lsegal/yard#1256).
No branches or pull requests
Escaped symbols, or string-symbols, or as I like to call them, 'abominations', don't get sent through to the generated file properly.
Input:
Generated rbi method:
The text was updated successfully, but these errors were encountered: