Specify Yard @opton tag to get autocompletion of opts hash keys.
In the example below, I was expecting autocompletion of the hash key names from the opts paramater. Is this supported in rubymine 3.2 on OSX?
class CoolDocumentation
# @param [Hash] opts I am testing if rubymine will suggest the correct hash keys
# @option opts [Date] :first The first argument
# @option opts [Date] :second The second argument
def suggest_opts_in_rubymine(opts={})
first=opts[:first]
second=opts[:second]
end
end
CoolDocumentation.new.suggest_opts_in_rubymine :
Attachment(s):
opts_keys_auto_complete.png
请先登录再写评论。
Hello Scott,
@option tag is not supported yet, here is the issue http://youtrack.jetbrains.net/issue/RUBY-8880
Feel free to vote, comment and track progress of it.
Regards,
Oleg