method
delete_prefix
v2_5_5 -
Show latest stable
- Class:
String
delete_prefix(p1)public
Returns a copy of str with leading prefix deleted.
"hello".delete_prefix("hel") #=> "lo" "hello".delete_prefix("llo") #=> "hello"
delete_prefix(p1)Returns a copy of str with leading prefix deleted.
"hello".delete_prefix("hel") #=> "lo" "hello".delete_prefix("llo") #=> "hello"