Class: DwCAContentAnalyzer::FileContents
- Inherits:
-
Object
- Object
- DwCAContentAnalyzer::FileContents
- Defined in:
- lib/dwca_content_analyzer/file_contents.rb
Instance Attribute Summary collapse
-
#columns ⇒ Object
readonly
Returns the value of attribute columns.
Instance Method Summary collapse
-
#initialize(file, detectors = %i[type length]) ⇒ FileContents
constructor
A new instance of FileContents.
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
#columns ⇒ Object (readonly)
Returns the value of attribute columns.
12 13 14 |
# File 'lib/dwca_content_analyzer/file_contents.rb', line 12 def columns @columns end |