Sha256: 4753eed2bee01cda1fb84b38048ab0d6707497a0819765401a5c1f4516d6ec0a
Contents?: true
Size: 777 Bytes
Versions: 9
Compression:
Stored size: 777 Bytes
Contents
module Exlibris module Aleph module Config class ConfigBySubLibrary < Exlibris::Aleph::Config::ConfigBase def initialize(args) super(args) @aleph_sub_library_key = :sub_library end def to_h a = self.to_a @config_hash = {} sl_a = a.collect do |i| i[@aleph_sub_library_key] end sl_a.uniq! sl_a.each do |sl| sl_hash = {} a.each do |i| isl = i[@aleph_sub_library_key] if isl.strip == sl.strip sl_hash[i[@hash_key]] = i end end @config_hash["#{sl}"] = sl_hash end return @config_hash end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems