def parse( line ) _, remote_addr, status, request, size, referrer, http_user_agent, http_x_forwarded_for = /^([^\\s]+) - (\\d+) \\\"(.+)\\\" (\\d+) \\\"(.*)\\\" \\
Ruby 2.3.0 added a safe navigation operator (&.) that checks for nil before calling a method.
&.
nil
request&.split(' ')
This is more or less semantically equivalent to
!request.nil? && request.split(' ')