public Object visitRootNode(RootNode node) {
return createVertex(node.getBodyNode());
}
public Object visitSClassNode(SClassNode node) {
Vertex receiverVertex = createVertex(node.getReceiverNode());
if (receiverVertex != null) {
for (IRubyObject object : receiverVertex.getTypeSet()) {
RubyClass klass = object.getMetaClass();
if (klass.isSingleton()) {
MetaClass metaClass = (MetaClass) klass;
if (metaClass.getAttached() instanceof RubyModule) {
context.pushFrame(klass, "sclass", klass, null, Visibility.PUBLIC);