How to set a hash member to a class so Rubymine can offer autocompletion from that class?
I'm a beginner in Ruby and Rubymine so sorry if this is an obvious question.
I'm creating a hash and adding an object from a specific class to it. For example:
measures = Hash.new
measures["weight"] = Measurement.new
Understandably, since typing is not static the object type is not explicitly stated so I want to know if there's a way to tell Rubymine measures["weight"] is going to be an object of the Measurement class so it can suggest me the methods from that class in the autocompletion feature.
Please sign in to leave a comment.
Hello,
at the moment it's not supported so could you please add your vote to the corresponding feature request:
https://youtrack.jetbrains.com/issue/RUBY-28895
I am new to ruby and rubmine. I am trying to use ruby mine.
Why is my autocomplete not working for doB() ? Am i doing something wrong?or is it expected? My Insite
TerryRector3 do you manage to run this code successfully? In my case it failed.