method

prepend

Importance_1
v2_6_3 - Show latest stable - 0 notes - Class: String
prepend(*args) public

Prepend—Prepend the given strings to str.

a = "!"
a.prepend("hello ", "world") #=> "hello world!"
a                            #=> "hello world!"

See also String#concat.

Show source
Register or log in to add new notes.