Sha256: e1addbca055f78a88fe1a4afe2b3f733c0919793f48290ce1e97e03c719ecc3d

Contents?: true

Size: 653 Bytes

Versions: 3

Compression:

Stored size: 653 Bytes

Contents

require 'marc4j4r'


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.7.1 lib/marcspec.rb
marcspec-1.6.6 lib/marcspec.rb
marcspec-1.6.5 lib/marcspec.rb