method

lstrip

v2_2_9 - Show latest stable - Class: String
lstrip()
public

Returns a copy of str with leading whitespace removed. See also String#rstrip and String#strip.

"  hello  ".lstrip   #=> "hello  "
"hello".lstrip       #=> "hello"