Sha256: a42fa37430124da738ef52ce6fcb12e58d5f0db59c13f71a2f02c24d6a575bab
Contents?: true
Size: 848 Bytes
Versions: 1
Compression:
Stored size: 848 Bytes
Contents
module Backend class Files < Backend def initialize bundle_name, category super bundle_name, category # Note: We marshal the similarity, as the # Yajl json lib cannot load symbolized # values, just keys. # @index = File::JSON.new category.index_path(bundle_name, :index) @weights = File::JSON.new category.index_path(bundle_name, :weights) @similarity = File::Marshal.new category.index_path(bundle_name, :similarity) @configuration = File::JSON.new category.index_path(bundle_name, :configuration) end def to_s <<-FILES Files: #{"Index: #{@index}".indented_to_s} #{"Weights: #{@weights}".indented_to_s} #{"Similarity: #{@similarity}".indented_to_s} #{"Config: #{@configuration}".indented_to_s} FILES end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
picky-2.6.0 | lib/picky/backend/files.rb |