Class: Riddle::Configuration
- Inherits:
-
Object
- Object
- Riddle::Configuration
- Defined in:
- lib/riddle/configuration.rb,
lib/riddle/configuration/index.rb,
lib/riddle/configuration/source.rb,
lib/riddle/configuration/indexer.rb,
lib/riddle/configuration/searchd.rb,
lib/riddle/configuration/section.rb,
lib/riddle/configuration/sql_source.rb,
lib/riddle/configuration/xml_source.rb,
lib/riddle/configuration/remote_index.rb,
lib/riddle/0.9.9/configuration/searchd.rb,
lib/riddle/configuration/realtime_index.rb,
lib/riddle/configuration/distributed_index.rb
Defined Under Namespace
Classes: ConfigurationError, DistributedIndex, Index, Indexer, RealtimeIndex, RemoteIndex, SQLSource, Searchd, Section, Source, XMLSource
Instance Attribute Summary collapse
-
#indexer ⇒ Object
Returns the value of attribute indexer.
-
#indexes ⇒ Object
readonly
Returns the value of attribute indexes.
-
#searchd ⇒ Object
readonly
Returns the value of attribute searchd.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #render ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
21 22 23 24 25 |
# File 'lib/riddle/configuration.rb', line 21 def initialize @indexer = Riddle::Configuration::Indexer.new @searchd = Riddle::Configuration::Searchd.new @indexes = [] end |
Instance Attribute Details
#indexer ⇒ Object
Returns the value of attribute indexer.
19 20 21 |
# File 'lib/riddle/configuration.rb', line 19 def indexer @indexer end |
#indexes ⇒ Object (readonly)
Returns the value of attribute indexes.
18 19 20 |
# File 'lib/riddle/configuration.rb', line 18 def indexes @indexes end |
#searchd ⇒ Object (readonly)
Returns the value of attribute searchd.
18 19 20 |
# File 'lib/riddle/configuration.rb', line 18 def searchd @searchd end |
Instance Method Details
#render ⇒ Object
27 28 29 30 31 32 |
# File 'lib/riddle/configuration.rb', line 27 def render ( [@indexer.render, @searchd.render] + @indexes.collect { |index| index.render } ).join("\n") end |