Class: Riddle::Configuration::Common

Inherits:
Section
  • Object
show all
Defined in:
lib/riddle/configuration/common.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Section

#valid?

Class Method Details

.settingsObject



6
7
8
9
10
11
12
# File 'lib/riddle/configuration/common.rb', line 6

def self.settings
  [
    :lemmatizer_base, :json_autoconv_numbers, :json_autoconv_keynames,
    :on_json_attr_error, :rlp_root, :rlp_environment, :rlp_max_batch_size,
    :rlp_max_batch_docs, :plugin_dir
  ]
end

Instance Method Details

#renderObject

Raises:



16
17
18
19
20
21
22
23
24
25
# File 'lib/riddle/configuration/common.rb', line 16

def render
  return unless common_sphinx_configuration
  raise ConfigurationError unless valid?

  (
    ["common", "{"] +
    settings_body +
    ["}", ""]
  ).join("\n")
end