Sha256: 1da3f7621ad3d99f691d75291e46ba5a62adcbe90eea7e39848e3787151852a1

Contents?: true

Size: 682 Bytes

Versions: 9

Compression:

Stored size: 682 Bytes

Contents

# frozen_string_literal: true

module Riddle
  class Configuration
    class Common < Riddle::Configuration::Section
      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

      attr_accessor :common_sphinx_configuration, *settings

      def render
        return unless common_sphinx_configuration
        raise ConfigurationError unless valid?

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
riddle-2.4.3 lib/riddle/configuration/common.rb
riddle-2.4.2 lib/riddle/configuration/common.rb
riddle-2.4.1 lib/riddle/configuration/common.rb
riddle-2.4.0 lib/riddle/configuration/common.rb
riddle-2.3.2 lib/riddle/configuration/common.rb
riddle-2.3.1 lib/riddle/configuration/common.rb
riddle-2.3.0 lib/riddle/configuration/common.rb
riddle-2.2.2 lib/riddle/configuration/common.rb
riddle-2.2.1 lib/riddle/configuration/common.rb