str.lstrip! â self or nil
Instance Public methods
Removes leading whitespace from str, returning nil
if
no change was made. See also String#rstrip!
and
String#strip!
.
1 2 | " hello " .lstrip #=> "hello " "hello" .lstrip! #=> nil |
Please login to continue.