You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
moduleFoo# returns a copy of self# @return [ ___ ]defreturns_new_selfself.class.newendendclassBarincludeFooendclassZapincludeFooend
With this, Bar.new.returns_new_self will return another Bar, and the same goes with Zap.new.returns_new_self.
I want to have retuns_new_self YARD-documented with a return type.
It will be nice if I could do something like @return [Self] as the Self in Rust.
Can I do something similar?
In my case, I do not care much about the generated documentation - only the fact that IntelliJ / Rubymine give coding hints is enough for me.
I don't know if it makes any difference from the code above, but in my case I am dealing with a Folder < UUIDRow < Row code, and I am implementing something at Row
Actual Output
[Provide the full output (please run yard with --debug) or screenshots for
visual issues.]
Expected Output
[Describe what you expected to happen.]
Environment details:
OS: [Enter operating system / version here]
Ruby version (ruby -v): [Enter output of ruby -v]
YARD version (yard -v): [Enter output of yard -v]
Relevant software dependency/versions:
[Any 3rd party libs required to reproduce, omit if none]
[Describe your issue here. Try to be as specific as possible so we can find
the root cause more quickly!]
Steps to reproduce
I am asking whether the question https://stackoverflow.com/q/56287625/2309247 has been considered
In my case, I do not care much about the generated documentation - only the fact that IntelliJ / Rubymine give coding hints is enough for me.
I don't know if it makes any difference from the code above, but in my case I am dealing with a
Folder < UUIDRow < Row
code, and I am implementing something atRow
Actual Output
[Provide the full output (please run yard with
--debug
) or screenshots forvisual issues.]
Expected Output
[Describe what you expected to happen.]
Environment details:
ruby -v
): [Enter output ofruby -v
]yard -v
): [Enter output ofyard -v
]I have read the Contributing Guide.
The text was updated successfully, but these errors were encountered: