Package org.jruby.util
Class RubyStringBuilder
java.lang.Object
org.jruby.util.RubyStringBuilder
Helper methods to make Ruby Strings without the ceremony of manually building the string up.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RubyStringcat(Ruby runtime, RubyString buf, byte[] bytes) static RubyStringcat(Ruby runtime, RubyString buf, int b) static RubyStringcat(Ruby runtime, RubyString str, String value) static RubyStringcat(Ruby runtime, RubyString buf, ByteList bytes) static RubyStringstatic RubyStringids(Ruby runtime, IRubyObject object) Convert object to proper Ruby String representation of an id.static RubyStringinspectIdentifierByteList(Ruby runtime, ByteList byteList) static Stringstr(Ruby runtime, String message, IRubyObject value) static Stringstr(Ruby runtime, String messageBegin, IRubyObject value, String messageEnd) static Stringstr(Ruby runtime, String messageBegin, IRubyObject value, String messageMiddle, RubyString value2, String messageMiddle2, IRubyObject value3, String messageMiddle3, RubyString value4, String messageEnd) static Stringstr(Ruby runtime, String messageBegin, IRubyObject value, String messageMiddle, IRubyObject value2) static Stringstr(Ruby runtime, String messageBegin, IRubyObject value, String messageMiddle, IRubyObject value2, String messageEnd) static Stringstr(Ruby runtime, String messageBegin, IRubyObject value, String messageMiddle, IRubyObject value2, String messageMiddle2, IRubyObject value3, String messageEnd) static Stringstr(Ruby runtime, IRubyObject value, String message) static Stringstr(Ruby runtime, IRubyObject value, String message, IRubyObject value2) static Stringstr(Ruby runtime, IRubyObject value, String message, IRubyObject value2, String message2) static RubyStringtypes(Ruby runtime, RubyModule type) static RubyStringtypes(Ruby runtime, RubyModule type1, RubyModule type2) static RubyStringtypes(ThreadContext context, RubyModule type)
-
Constructor Details
-
RubyStringBuilder
public RubyStringBuilder()
-
-
Method Details
-
types
-
types
-
types
-
ids
-
ids
Convert object to proper Ruby String representation of an id. This will not work for any string. It must represent an identifier the systems knows about.- Parameters:
runtime-object-
-
inspectIdentifierByteList
-
str
-
str
-
str
-
str
-
str
public static String str(Ruby runtime, IRubyObject value, String message, IRubyObject value2, String message2) -
str
public static String str(Ruby runtime, String messageBegin, IRubyObject value, String messageMiddle, IRubyObject value2) -
str
public static String str(Ruby runtime, String messageBegin, IRubyObject value, String messageMiddle, IRubyObject value2, String messageEnd) -
str
public static String str(Ruby runtime, String messageBegin, IRubyObject value, String messageMiddle, IRubyObject value2, String messageMiddle2, IRubyObject value3, String messageEnd) -
str
public static String str(Ruby runtime, String messageBegin, IRubyObject value, String messageMiddle, RubyString value2, String messageMiddle2, IRubyObject value3, String messageMiddle3, RubyString value4, String messageEnd) -
cat
-
cat
-
cat
-
cat
-