Skip to content

Commit

Permalink
Showing 2 changed files with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -179,6 +179,25 @@ public RubyArray toA(RubyMatchData matchData) {
}
}

@CoreMethod(names = "to_s")
public abstract static class ToSNode extends CoreMethodNode {

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

public ToSNode(ToSNode prev) {
super(prev);
}

@Specialization
public RubyString toA(RubyMatchData matchData) {
notDesignedForCompilation();

return matchData.getGlobal();
}
}

@CoreMethod(names = "values_at", argumentsAsArray = true)
public abstract static class ValuesAtNode extends CoreMethodNode {

1 change: 0 additions & 1 deletion spec/truffle/tags/core/matchdata/to_s_tags.txt

This file was deleted.

0 comments on commit 4e86fcd

Please sign in to comment.