Ruby runtime = graph.getRuntime();
Context context = runtime.getContext();
Block block = attr.getBlock();
Scope scope = new LocalScope(method.getModule());
context.pushFrame(context.getFrameModule(), name, receiver, block, Visibility.PUBLIC);
context.pushScope(scope);
Template template = new Template(method, context.getCurrentFrame(), scope, attr);
method.addTemplate(attr, template);