YARD @type for instance variables Follow
I've searched all over the internet and can't find anything that tells me how to use the @type documentation for an instance variable.
https://www.jetbrains.com/help/ruby/using-annotations.html#local_var works just fine for local variables
I've tried both of the following and neither work
# @type @profile [Profile]
@profile = company.profiles.first
# @type [Profile]
@profile = company.profiles.first # Company has_many Profiles
Any help would be appreciated. Thanks!
Please sign in to leave a comment.
unfortunately at the moment it's supported for local variables, not instance ones. Please vote and follow the corresponding request: