method

lstrip!

v1_8_7_72 - Show latest stable - Class: String
lstrip!()
public

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