code: public static <T> T eachLine(URL url, @ClosureParams(value = FromString.class, options = {"String", "String,Integer"}) Closure<T> closure) throws IOException {
          return eachLine(url, 1, closure);
      }
docs: Iterates through the lines read from the URL's associated input stream passing each
  line to the given 1 or 2 arg closure. The stream is closed before this method returns.
  
  @param url     a URL to open and read
  @param closure a closure to apply on each line (arg 1 is line, optional arg 2 is line number starting at line 1)
  @return the last value returned by the closure
  @throws IOException if an IOException occurs.
  @see #eachLine(java.net.URL, int, groovy.lang.Closure)
  @since 1.5.6