I'm looking for a way to do searches over all files in a project (ruby) like
- search for all class methods (they could begin with
def self.
, but also be nested inside aclass << self
) - search for class instance variables (
@foobar
defined at class level) - search for instance variables (
@foobar
defined on instance level)
Is this possible in any editor? I'm using textmate and sublime but haven't seen any advanced searches like this. I know regex would be a starting point, but most of the time it's a time consuming, "I'm not sure if it really works" issue.