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 :


opts_keys_auto_complete.png



Attachment(s):
opts_keys_auto_complete.png
1 comment

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

0

Please sign in to leave a comment.