Module: CacheSpot

Defined in:
lib/marcspec.rb

Instance Method Summary collapse

Instance Method Details

#cachespotHash

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.

Returns:

  • (Hash)

    the cachespot hash



21
22
23
24
# File 'lib/marcspec.rb', line 21

def cachespot
  @_cachespot ||= {}
  return @_cachespot
end