str.lstrip â new_str
Instance Public methods
Returns a copy of str with leading whitespace removed. See also
String#rstrip
and String#strip
.
1 2 | " hello " .lstrip #=> "hello " "hello" .lstrip #=> "hello" |
Returns a copy of str with leading whitespace removed. See also
String#rstrip
and String#strip
.
1 2 | " hello " .lstrip #=> "hello " "hello" .lstrip #=> "hello" |
Designed by : w10schools
service@w10schools.com
Please login to continue.