← Reference

string-methods

Ruby string-methods reference.

String#prepend

Prepends one or more strings to the beginning of the target string. Modifies the string in place and returns self.

str.prepend(other_str)