method

prepend

Importance_1
Ruby latest stable (v2_5_5) - 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.