Skip to content

Commit

Permalink
Showing 2 changed files with 13 additions and 1 deletion.
1 change: 0 additions & 1 deletion spec/truffle/tags/core/binding/receiver_tags.txt

This file was deleted.

Original file line number Diff line number Diff line change
@@ -309,6 +309,19 @@ public static DynamicObject listLocalVariables(RubyContext context, Frame frame)
}
}

@CoreMethod(names = "receiver")
public abstract static class ReceiverNode extends UnaryCoreMethodNode {

public ReceiverNode(RubyContext context, SourceSection sourceSection) {
super(context, sourceSection);
}

@Specialization
public Object receiver(DynamicObject binding) {
return RubyArguments.getSelf(Layouts.BINDING.getFrame(binding).getArguments());
}
}

@CoreMethod(names = "allocate", constructor = true)
public abstract static class AllocateNode extends CoreMethodArrayArgumentsNode {

0 comments on commit f2a463f

Please sign in to comment.