method
lstrip
v2_6_3 -
Show latest stable
- Class:
String
lstrip()public
Returns a copy of the receiver with leading whitespace removed. See also String#rstrip and String#strip.
Refer to String#strip for the definition of whitespace.
" hello ".lstrip #=> "hello " "hello".lstrip #=> "hello"