Sha256: 8e8d614f5e62d8a45381c7e3fa9f78762f38c56c843de4217f0babd2d5e25685
Contents?: true
Size: 585 Bytes
Versions: 3
Compression:
Stored size: 585 Bytes
Contents
module Index class Types attr_reader :types, :type_mapping each_delegate :load_from_cache, :to => :types def initialize clear end # TODO Spec. # def clear @types = [] @type_mapping = {} end # TODO Spec. # def reload load_from_cache end # TODO Spec # def register type self.types << type self.type_mapping[type.name] = type end def [] name name = name.to_sym type_mapping[name] end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
picky-0.11.2 | lib/picky/index/types.rb |
picky-0.11.1 | lib/picky/index/types.rb |
picky-0.11.0 | lib/picky/index/types.rb |