Class: TorchData::DataPipes::Iter::Util::PlainTextReaderHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/torchdata/data_pipes/iter/util/csv_parser.rb

Instance Method Summary collapse

Instance Method Details

#as_tuple(stream) ⇒ Object



38
39
40
# File 'lib/torchdata/data_pipes/iter/util/csv_parser.rb', line 38

def as_tuple(stream)
  stream
end

#decode(stream) ⇒ Object



30
31
32
# File 'lib/torchdata/data_pipes/iter/util/csv_parser.rb', line 30

def decode(stream)
  stream
end

#return_path(stream, path: nil) ⇒ Object



34
35
36
# File 'lib/torchdata/data_pipes/iter/util/csv_parser.rb', line 34

def return_path(stream, path: nil)
  stream
end

#skip_lines(file) ⇒ Object



26
27
28
# File 'lib/torchdata/data_pipes/iter/util/csv_parser.rb', line 26

def skip_lines(file)
  file
end