File tree 2 files changed +19
-1
lines changed
core/src/main/java/org/jruby/truffle/nodes/core
spec/truffle/tags/core/matchdata
2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -179,6 +179,25 @@ public RubyArray toA(RubyMatchData matchData) {
179
179
}
180
180
}
181
181
182
+ @ CoreMethod (names = "to_s" )
183
+ public abstract static class ToSNode extends CoreMethodNode {
184
+
185
+ public ToSNode (RubyContext context , SourceSection sourceSection ) {
186
+ super (context , sourceSection );
187
+ }
188
+
189
+ public ToSNode (ToSNode prev ) {
190
+ super (prev );
191
+ }
192
+
193
+ @ Specialization
194
+ public RubyString toA (RubyMatchData matchData ) {
195
+ notDesignedForCompilation ();
196
+
197
+ return matchData .getGlobal ();
198
+ }
199
+ }
200
+
182
201
@ CoreMethod (names = "values_at" , argumentsAsArray = true )
183
202
public abstract static class ValuesAtNode extends CoreMethodNode {
184
203
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments