Sha256: fbc9498d1ba41559387aeceefe122747e05a546ebfdba4f8c70d310a5e38deda

Contents?: true

Size: 452 Bytes

Versions: 4

Compression:

Stored size: 452 Bytes

Contents

class ThinkingSphinx::Search::Context
  attr_reader :search, :configuration

  def initialize(search, configuration = nil)
    @search        = search
    @configuration = configuration || ThinkingSphinx::Configuration.instance
    @memory        = {
      :results => [],
      :panes   => ThinkingSphinx::Configuration::Defaults::PANES.clone
    }
  end

  def [](key)
    @memory[key]
  end

  def []=(key, value)
    @memory[key] = value
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
thinking-sphinx-3.1.4 lib/thinking_sphinx/search/context.rb
thinking-sphinx-3.1.3 lib/thinking_sphinx/search/context.rb
thinking-sphinx-3.1.2 lib/thinking_sphinx/search/context.rb
thinking-sphinx-3.1.1 lib/thinking_sphinx/search/context.rb