Module: NdrImport::NonTabularFileHelper
- Includes:
- UTF8Encoding
- Defined in:
- lib/ndr_import/non_tabular_file_helper.rb
Overview
This mixin adds (multiline) non-tabular file functionality to unified importers. It provides a file reader method and method to capture the rawtext value appropriately. These methods can be overridden or aliased as required.
The YAML mapping must define the start_line_pattern which identifies the start of a multiline record (or “row”) and can optionally define an end_line_pattern.
Instance Attribute Summary collapse
-
#non_tabular_lines ⇒ Object
readonly
Returns the value of attribute non_tabular_lines.
Instance Attribute Details
#non_tabular_lines ⇒ Object
Returns the value of attribute non_tabular_lines.
21 22 23 |
# File 'lib/ndr_import/non_tabular_file_helper.rb', line 21 def non_tabular_lines @non_tabular_lines end |