Sha256: ef92e02c6fbdb154aa86a829eba20dd8443b35191bc03bc2c108c7d2c9e88fde

Contents?: true

Size: 679 Bytes

Versions: 3

Compression:

Stored size: 679 Bytes

Contents

require 'marc4j4r'
require "logback-simple"



require "marcspec/customspec"
require "marcspec/solrfieldspec"
require "marcspec/constantspec"
require "marcspec/kvmap"
require "marcspec/multivaluemap"
require "marcspec/specset"
require "marcspec/marcfieldspec"
require "marcspec/dsl"

module CacheSpot
  # Build up a little module to include in MARC4J4R::Record that
  # gives us a way to cache computed values within the record itself
  # It's just a hash.
  #
  # Pretty sure this belongs somewhere else; not sure where.
  #
  # @return [Hash] the cachespot hash
  def cachespot
    @_cachespot ||= {}
    return @_cachespot
  end
end

MARC4J4R::Record.send(:include, CacheSpot)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
marcspec-1.6.4 lib/marcspec.rb
marcspec-1.6.3 lib/marcspec.rb
marcspec-1.6.1 lib/marcspec.rb