RSense is a ruby code analyzer. Plugins have already been developed using it for Sublime Text, Atom, and Textmate 2.
Another option would be perhaps porting the Code Intel components from KomodoEdit. This is what SublimeCodeIntel does I believe. Well, maybe directly porting isn't such a good idea, but using it for inspiration might be instead.
RSense is a ruby code analyzer. Plugins have already been developed using it for Sublime Text, Atom, and Textmate 2.
Another option would be perhaps porting the Code Intel components from KomodoEdit. This is what SublimeCodeIntel does I believe. Well, maybe directly porting isn't such a good idea, but using it for inspiration might be instead.