Method: Fech::Mappings.for_row
- Defined in:
- lib/fech/mappings.rb
.for_row(row_type, opts = {}) ⇒ Object
Given a row type, first find the entire block of maps for that row type. Then, use the filing’s version to choose which specific map set to use, and return it.
42 43 44 45 46 |
# File 'lib/fech/mappings.rb', line 42 def self.for_row(row_type, opts={}) opts[:version] ||= Fech::DEFAULT_VERSION map = key_by_regex(load_map, row_type) key_by_regex(map, opts[:version]) end |