earwig / bitshift

A semantic search engine for source code
https://bitshift.benkurtovic.com/
MIT License
30 stars 5 forks source link

Ruby class parsing (sometimes) yields incorrect results. #62

Closed benattal closed 10 years ago

earwig commented 10 years ago

If this includes adding things like >= and [], then good - otherwise, make note of that too.

benattal commented 10 years ago

=, [], ==, etc. are all considered functions in ruby. You can define each of these and how they behave on specific classes. Closing this issue.

earwig commented 10 years ago

Who would ever want to search for ruby code that uses >=?

earwig commented 10 years ago

The point is, there's a lot of them, and it potentially pollutes the database and makes it slower for other searches.

benattal commented 10 years ago

Ben... people who write ruby code define these methods (as I listed: >=, ==, ===, <<) on different objects all the time. The point of bitshift is to search for functions that are defined and used. These fall under that category for ruby.