Sha256: 0423b5fd5bbe424d80d69a3cabab489f6ac219e3a81f51538e00834dd6e32c92
Contents?: true
Size: 598 Bytes
Versions: 2
Compression:
Stored size: 598 Bytes
Contents
require 'marc' require 'marc_extensions/subfield' module MARCExtensions module DataFieldExtensions def subfield_codes subfields.map(&:code) end def frozen? [tag, indicator1, indicator2, subfields].all?(&:frozen?) subfields.all?(&:frozen?) end def freeze [tag, indicator1, indicator2].each(&:freeze) subfields.each(&:freeze) subfields.freeze self end end end module MARC # @see https://rubydoc.info/gems/marc/MARC/DataField RubyGems documentation class DataField prepend MARCExtensions::DataFieldExtensions end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
berkeley_library-marc-0.2.1 | lib/marc_extensions/data_field.rb |
berkeley_library-marc-0.2.0 | lib/marc_extensions/data_field.rb |