Пример #1
0
 private Object methodMissing(
     RubyBasicObject self, RubySymbol name, Object[] args, RubyProc block) {
   throw new RaiseException(
       getContext().getCoreLibrary().nameErrorNoMethod(name.toString(), self.toString()));
 }
Пример #2
0
 @Specialization
 public boolean equal(RubyString a, RubySymbol b) {
   return equal(a, b.toRubyString());
 }
Пример #3
0
 @CompilerDirectives.TruffleBoundary
 @Specialization
 protected String toJavaString(RubySymbol symbol) {
   return symbol.toString();
 }