Sha256: a49003d12f0b9b860a05622004914113e97d596a368b30015519f38feddc2b98
Contents?: true
Size: 888 Bytes
Versions: 3
Compression:
Stored size: 888 Bytes
Contents
require 'riddle/configuration/section' require 'riddle/configuration/distributed_index' require 'riddle/configuration/index' require 'riddle/configuration/indexer' require 'riddle/configuration/remote_index' require 'riddle/configuration/searchd' require 'riddle/configuration/source' require 'riddle/configuration/sql_source' require 'riddle/configuration/xml_source' module Riddle class Configuration class ConfigurationError < StandardError #:nodoc: end attr_reader :indexes, :searchd attr_accessor :indexer def initialize Riddle.version_warning @indexer = Riddle::Configuration::Indexer.new @searchd = Riddle::Configuration::Searchd.new @indexes = [] end def render ( [@indexer.render, @searchd.render] + @indexes.collect { |index| index.render } ).join("\n") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
riddle-1.0.6 | lib/riddle/configuration.rb |
riddle-1.0.5 | lib/riddle/configuration.rb |
riddle-1.0.4 | lib/riddle/configuration.rb |