Sha256: 3937734ba93705fc78b0c7108802d0ce49cb8c45d762393f781bb733224c98c6
Contents?: true
Size: 348 Bytes
Versions: 1
Compression:
Stored size: 348 Bytes
Contents
module Indexes class Definitions def add(*args) index = Index.new(*args) registry[index.name] = index end def find(name) registry[name] end alias_method :[], :find def each(&block) registry.values.sort.each &block end private def registry @registry ||= {} end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
indexes-4.0.0.0 | lib/indexes/definitions.rb |