public static RubyEnumerator<String> foreach(String path) {
    return Ruby.Enumerator.of(new EachLineIterable(new File(path)));
  }
public static RubyEnumerator < String > foreach ( String path ) { return Ruby . Enumerator . of ( new EachLineIterable ( new File ( path ) ) ) ; }
Returns a {@link RubyEnumerator} of lines in given file.

@param path
of a File
@return {@link RubyEnumerator}