Ruby syntaxtree
From wikinotes
a very fast ruby ast
node-types all defined within node.rb
stree search 'VarRef[value: Const[value: "MyModule"]]' **/*.rb
stree search 'ConstPathRef[VarRef[value: Const[value: "MyModule"]],Const[value: "MyClass"]]' **/*.rb