Sha256: dd236f954e697d46acc811a74b05b2604927fbfe17556f081dd1c4f8bc5d629c
Contents?: true
Size: 604 Bytes
Versions: 25
Compression:
Stored size: 604 Bytes
Contents
module Indexed class Indexes attr_reader :indexes, :index_mapping each_delegate :load_from_cache, :to => :indexes def initialize clear end # TODO Spec. # def clear @indexes = [] @index_mapping = {} end # TODO Spec. # def reload load_from_cache end # TODO Spec # def register index self.indexes << index self.index_mapping[index.name] = index end def [] name name = name.to_sym index_mapping[name] end end end
Version data entries
25 entries across 25 versions & 1 rubygems