Sha256: 765852122d7c480929e7d26f416c377abdfdc324b381263a3d74e3dcc5f61c8f

Contents?: true

Size: 556 Bytes

Versions: 3

Compression:

Stored size: 556 Bytes

Contents

module Riddle
  class Configuration
    class Indexer < Riddle::Configuration::Section
      def self.settings
        [ 
          :mem_limit, :max_iops, :max_iosize, :max_xmlpipe2_field,
          :write_buffer, :max_file_field_buffer, :lemmatizer_base, :lemmatizer_cache
        ]
      end
      
      attr_accessor *self.settings
            
      def render
        raise ConfigurationError unless valid?
        
        (
          ["indexer", "{"] +
          settings_body +
          ["}", ""]
        ).join("\n")
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
riddle-1.5.8 lib/riddle/configuration/indexer.rb
riddle-1.5.7 lib/riddle/configuration/indexer.rb
riddle-1.5.6 lib/riddle/configuration/indexer.rb