method
prepend
v2_1_10 -
Show latest stable
- Class:
String
prepend(p1)public
Prepend—Prepend the given string to str.
a = "world" a.prepend("hello ") #=> "hello world" a #=> "hello world"
prepend(p1)Prepend—Prepend the given string to str.
a = "world" a.prepend("hello ") #=> "hello world" a #=> "hello world"