Sha256: 442697f8a557975c293a63949c800cd3476caf6365d33f4d51109bedef367b15

Contents?: true

Size: 678 Bytes

Versions: 5

Compression:

Stored size: 678 Bytes

Contents

module Internals

  module Index
  
    class Files < Backend
    
      def initialize bundle_name, config
        super bundle_name, config
      
        # Note: We marshal the similarity, as the
        #       Yajl json lib cannot load symbolized
        #       values, just keys.
        #
        @index         = File::JSON.new    config.index_path(bundle_name, :index)
        @weights       = File::JSON.new    config.index_path(bundle_name, :weights)
        @similarity    = File::Marshal.new config.index_path(bundle_name, :similarity)
        @configuration = File::JSON.new    config.index_path(bundle_name, :configuration)
      end
    
    end
  
  end
  
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
picky-1.5.2 lib/picky/internals/index/files.rb
picky-1.5.1 lib/picky/internals/index/files.rb
picky-1.5.0 lib/picky/internals/index/files.rb
picky-1.4.3 lib/picky/internals/index/files.rb
picky-1.4.2 lib/picky/internals/index/files.rb