Top Description Constructors Methods
org.jruby.util

public Class RubyStringBuilder

extends Object
Class Inheritance
Imports
org.jcodings.Encoding, org.jcodings.specific.USASCIIEncoding, org.jcodings.unicode.UnicodeEncoding, org.jruby.*, org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.util.io.EncodingUtils

Helper methods to make Ruby Strings without the ceremony of manually building the string up.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static RubyString
cat(final Ruby runtime, final RubyString str, final String value)

public static RubyString
cat(final Ruby runtime, RubyString buf, int b)

public static RubyString
cat(final Ruby runtime, RubyString buf, byte[] bytes)

public static RubyString
cat(final Ruby runtime, RubyString buf, ByteList bytes)

public static RubyString
ids(Ruby runtime, String id)

public static RubyString
ids(Ruby runtime, IRubyObject object)

Convert object to proper Ruby String representation of an id. This will not work for any string.

public static RubyString
inspectIdentifierByteList(final Ruby runtime, ByteList byteList)

public static String
str(Ruby runtime, IRubyObject value, String message)

public static String
str(Ruby runtime, String message, IRubyObject value)

public static String
str(Ruby runtime, String messageBegin, IRubyObject value, String messageEnd)

public static String
str(Ruby runtime, IRubyObject value, String message, IRubyObject value2)

public static String
str(Ruby runtime, IRubyObject value, String message, IRubyObject value2, String message2)

public static String
str(Ruby runtime, String messageBegin, IRubyObject value, String messageMiddle, IRubyObject value2)

public static String
str(Ruby runtime, String messageBegin, IRubyObject value, String messageMiddle, IRubyObject value2, String messageEnd)

public static String
str(Ruby runtime, String messageBegin, IRubyObject value, String messageMiddle, IRubyObject value2, String messageMiddle2, IRubyObject value3, String messageEnd)

public static String
str(Ruby runtime, String messageBegin, IRubyObject value, String messageMiddle, RubyString value2, String messageMiddle2, IRubyObject value3, String messageMiddle3, RubyString value4, String messageEnd)

public static RubyString
public static RubyString
types(Ruby runtime, RubyModule type)

public static RubyString
types(Ruby runtime, RubyModule type1, RubyModule type2)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

RubyStringBuilderback to summary
public RubyStringBuilder()

Method Detail

catback to summary
public static RubyString cat(final Ruby runtime, final RubyString str, final String value)
catback to summary
public static RubyString cat(final Ruby runtime, RubyString buf, int b)
catback to summary
public static RubyString cat(final Ruby runtime, RubyString buf, byte[] bytes)
catback to summary
public static RubyString cat(final Ruby runtime, RubyString buf, ByteList bytes)
idsback to summary
public static RubyString ids(Ruby runtime, String id)
idsback to summary
public static RubyString ids(Ruby runtime, IRubyObject object)

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.

inspectIdentifierByteListback to summary
public static RubyString inspectIdentifierByteList(final Ruby runtime, ByteList byteList)
strback to summary
public static String str(Ruby runtime, IRubyObject value, String message)
strback to summary
public static String str(Ruby runtime, String message, IRubyObject value)
strback to summary
public static String str(Ruby runtime, String messageBegin, IRubyObject value, String messageEnd)
strback to summary
public static String str(Ruby runtime, IRubyObject value, String message, IRubyObject value2)
strback to summary
public static String str(Ruby runtime, IRubyObject value, String message, IRubyObject value2, String message2)
strback to summary
public static String str(Ruby runtime, String messageBegin, IRubyObject value, String messageMiddle, IRubyObject value2)
strback to summary
public static String str(Ruby runtime, String messageBegin, IRubyObject value, String messageMiddle, IRubyObject value2, String messageEnd)
strback to summary
public static String str(Ruby runtime, String messageBegin, IRubyObject value, String messageMiddle, IRubyObject value2, String messageMiddle2, IRubyObject value3, String messageEnd)
strback to summary
public static String str(Ruby runtime, String messageBegin, IRubyObject value, String messageMiddle, RubyString value2, String messageMiddle2, IRubyObject value3, String messageMiddle3, RubyString value4, String messageEnd)
typesback to summary
public static RubyString types(ThreadContext context, RubyModule type)
typesback to summary
public static RubyString types(Ruby runtime, RubyModule type)
typesback to summary
public static RubyString types(Ruby runtime, RubyModule type1, RubyModule type2)