Skip to content
instance method

String#prepend

(*::string other_strings) -> self
prepend(*other_strings) → new_string

Prefixes to self the concatenation of the given other_strings; returns self:

Example
'baz'.prepend('foo', 'bar') # => "foobarbaz"

Related: see Modifying.

See also #partition #replace #ord #reverse also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0