Method: TxtFileHandler#line_nr

Defined in:
lib/txt_file_handler.rb

#line_nrObject



27
28
29
30
31
32
33
34
35
# File 'lib/txt_file_handler.rb', line 27

def line_nr
  return unless ropen
  i = 0
  @file.each_line{ |s|
    i+=1
  }
  close
  i
end