In PHP we can describe any variable and get proper auto-complete in an IDE like PHPStorm.
/** @var MyClass $my */
$my = $this->getMy();
Is there some way to make it in RubyMine by using RDoc?
Finally found among my old code... :)
# @type [Some::MyClass] my
my = getMy