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!
.
" hello ".lstrip #=> "hello " "hello".lstrip! #=> nil
Removes leading whitespace from str, returning nil
if
no change was made. See also String#rstrip!
and
String#strip!
.
" hello ".lstrip #=> "hello " "hello".lstrip! #=> nil
Please login to continue.