Class: DwCAContentAnalyzer::FileContents

Inherits:
Object
  • Object
show all
Defined in:
lib/dwca_content_analyzer/file_contents.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file, detectors = %i[type length]) ⇒ FileContents

Returns a new instance of FileContents.



14
15
16
17
18
# File 'lib/dwca_content_analyzer/file_contents.rb', line 14

def initialize(file, detectors = %i[type length])
  @file = file
  @detectors = detectors
  @columns = analyze
end

Instance Attribute Details

#columnsObject (readonly)

Returns the value of attribute columns.



12
13
14
# File 'lib/dwca_content_analyzer/file_contents.rb', line 12

def columns
  @columns
end