Sha256: 6af7585ff1f17823f290307e56809395a817826bd304bf056ee3ca82a6a17bee

Contents?: true

Size: 552 Bytes

Versions: 1

Compression:

Stored size: 552 Bytes

Contents

# Registers the indexes held at runtime, for queries.
#
class Indexes
  
  instance_delegate :load_from_cache,
                    :reload,
                    :analyze
  
  each_delegate :load_from_cache,
                :to => :indexes
  
  # Reloads all indexes, one after another,
  # in the order they were added.
  #
  alias reload load_from_cache

  # Load each index, and analyze it.
  #
  # Returns a hash with the findings.
  #
  def analyze
    result = {}
    indexes.each do |index|
      index.analyze result
    end
    result
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
picky-2.6.0 lib/picky/indexes_indexed.rb