module CacheSpot

Public Instance Methods

cachespot() click to toggle source

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

# File lib/marcspec.rb, line 21
def cachespot
  @_cachespot ||= {}
  return @_cachespot
end