class Riddle::Configuration

Attributes

indexer[RW]
indices[R]
searchd[R]

Public Class Methods

new() click to toggle source
# File lib/riddle/configuration.rb, line 27
def initialize
  @indexer = Riddle::Configuration::Indexer.new
  @searchd = Riddle::Configuration::Searchd.new
  @indices = []
end
parse!(input) click to toggle source
# File lib/riddle/configuration.rb, line 23
def self.parse!(input)
  Riddle::Configuration::Parser.new(input).parse!
end

Public Instance Methods

render() click to toggle source
# File lib/riddle/configuration.rb, line 33
def render
  (
    [@indexer.render, @searchd.render] +
    @indices.collect { |index| index.render }
  ).join("\n")
end