Skip to content

Commit

Permalink
Showing 2 changed files with 0 additions and 30 deletions.
8 changes: 0 additions & 8 deletions spec/truffle/tags/core/kernel/String_tags.txt

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1722,28 +1722,6 @@ public DynamicObject singletonMethods(Object self, boolean includeAncestors) {

}

@CoreMethod(names = "String", isModuleFunction = true, required = 1)
public abstract static class StringNode extends CoreMethodArrayArgumentsNode {

@Child private CallDispatchHeadNode toS;

public StringNode(RubyContext context, SourceSection sourceSection) {
super(context, sourceSection);
toS = DispatchHeadNodeFactory.createMethodCall(context);
}

@Specialization(guards = "isRubyString(value)")
public DynamicObject string(DynamicObject value) {
return value;
}

@Specialization(guards = "!isRubyString(value)")
public Object string(VirtualFrame frame, Object value) {
return toS.call(frame, value, "to_s", null);
}

}

@CoreMethod(names = "sleep", isModuleFunction = true, optional = 1)
public abstract static class SleepNode extends CoreMethodArrayArgumentsNode {

0 comments on commit 5cfedc5

Please sign in to comment.