Class: Exlibris::Aleph::TabParser::Tab40
- Inherits:
-
SubLibrary
- Object
- Base
- SubLibrary
- Exlibris::Aleph::TabParser::Tab40
- Defined in:
- lib/exlibris/aleph/tabs_parser/tab40.rb
Instance Attribute Summary
Attributes inherited from Base
#config_array, #config_hash, #file_name, #hash_key, #library, #local_file, #local_path, #pattern, #pattern_key
Instance Method Summary collapse
-
#initialize(args) ⇒ Tab40
constructor
A new instance of Tab40.
Methods inherited from SubLibrary
Methods inherited from Base
Constructor Details
#initialize(args) ⇒ Tab40
Returns a new instance of Tab40.
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/exlibris/aleph/tabs_parser/tab40.rb', line 6 def initialize(args) args[:aleph_file_name] = "tab40.eng" args[:pattern] = /^(.{5})\s(.{5})\s(L)\s(.+)/ args[:pattern_key] = { 1 => :collection_code, 2 => :sub_library, 4 => :text } args[:hash_key] = :collection_code super(args) end |