Skip to content

Commit

Permalink
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -971,6 +971,15 @@ public RubySymbol defineMethod(RubyModule module, String name, RubyMethod method
return getContext().getSymbolTable().getSymbol(name);
}

@Specialization
public RubySymbol defineMethod(RubyModule module, String name, RubyUnboundMethod method, UndefinedPlaceholder block) {
notDesignedForCompilation();

module.addMethod(this, method.getMethod().withNewName(name));

return getContext().getSymbolTable().getSymbol(name);
}

private RubySymbol defineMethod(RubyModule module, String name, RubyProc proc) {
notDesignedForCompilation();

0 comments on commit c6599ea

Please sign in to comment.