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 RubyString
cat
(Ruby runtime, RubyString buf, byte[] bytes) static RubyString
cat
(Ruby runtime, RubyString buf, int b) static RubyString
cat
(Ruby runtime, RubyString str, String value) static RubyString
cat
(Ruby runtime, RubyString buf, ByteList bytes) static RubyString
static RubyString
ids
(Ruby runtime, IRubyObject object) Convert object to proper Ruby String representation of an id.static RubyString
inspectIdentifierByteList
(Ruby runtime, ByteList byteList) static String
str
(Ruby runtime, String message, IRubyObject value) static String
str
(Ruby runtime, String messageBegin, IRubyObject value, String messageEnd) static String
str
(Ruby runtime, String messageBegin, IRubyObject value, String messageMiddle, RubyString value2, String messageMiddle2, IRubyObject value3, String messageMiddle3, RubyString value4, String messageEnd) static String
str
(Ruby runtime, String messageBegin, IRubyObject value, String messageMiddle, IRubyObject value2) static String
str
(Ruby runtime, String messageBegin, IRubyObject value, String messageMiddle, IRubyObject value2, String messageEnd) static String
str
(Ruby runtime, String messageBegin, IRubyObject value, String messageMiddle, IRubyObject value2, String messageMiddle2, IRubyObject value3, String messageEnd) static String
str
(Ruby runtime, IRubyObject value, String message) static String
str
(Ruby runtime, IRubyObject value, String message, IRubyObject value2) static String
str
(Ruby runtime, IRubyObject value, String message, IRubyObject value2, String message2) static RubyString
types
(Ruby runtime, RubyModule type) static RubyString
types
(Ruby runtime, RubyModule type1, RubyModule type2) static RubyString
types
(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
-