Skip to content

Commit

Permalink
Showing 2 changed files with 0 additions and 20 deletions.
3 changes: 0 additions & 3 deletions spec/truffle/tags/core/string/strip_tags.txt

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1700,23 +1700,6 @@ public RubyBasicObject swapcaseSingleByte(RubyString string) {
}
}

@CoreMethod(names = "strip")
public abstract static class StripNode extends CoreMethodArrayArgumentsNode {

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

@Specialization
public RubyBasicObject strip(RubyString string) {
CompilerDirectives.transferToInterpreter();

// Hacky implementation to get something working
return StringNodes.createString(getContext().getCoreLibrary().getStringClass(), string.toString().trim());
}

}

@CoreMethod(names = "dump", taintFromSelf = true)
@ImportStatic(StringGuards.class)
public abstract static class DumpNode extends CoreMethodArrayArgumentsNode {

0 comments on commit c89e4e7

Please sign in to comment.