@RubyLevelMethod(name = "p", module = true) public static RubyValue p(RubyValue receiver, RubyValue arg) { RubyValue str = RubyAPI.callNoArgMethod(arg, null, RubyID.inspectID); RubyString value = str.toRubyString(); value.appendString("\n"); System.out.print(value.toString()); return RubyConstant.QNIL; }
@RubyLevelMethod(name = "send", alias = "__send__") public static RubyValue send(RubyValue receiver, RubyValue value, RubyBlock block) { RubyID mid = RubyID.intern(value.toStr()); return RubyAPI.callNoArgMethod(receiver, block, mid); }