Sha256: 02f50ca8204d233640b3a620bac41873b03223282e12c5432b52fc457d550087

Contents?: true

Size: 370 Bytes

Versions: 2

Compression:

Stored size: 370 Bytes

Contents

require 'marc'

module MARCExtensions
  module SubfieldExtensions
    def frozen?
      [code, value].all?(&:frozen?)
    end

    def freeze
      [code, value].each(&:freeze)
      self
    end
  end
end

module MARC
  # @see https://rubydoc.info/gems/marc/MARC/Subfield RubyGems documentation
  class Subfield
    prepend MARCExtensions::SubfieldExtensions
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
berkeley_library-marc-0.2.1 lib/marc_extensions/subfield.rb
berkeley_library-marc-0.2.0 lib/marc_extensions/subfield.rb