Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

! doc

  • Loading branch information...
commit 222c07a88747acdb4892bb1f8112266607570bed 1 parent 27bf3db
@floere authored
View
8 server/lib/picky/backends/file.rb
@@ -11,25 +11,25 @@ module Backends
class File < Backend
# Returns an object that responds to:
- # [:token] => [id, id, id, id, id] # (an array of ids)
+ # [:token] # => [id, id, id, id, id] (an array of ids)
#
def create_inverted bundle
JSON.new bundle.index_path(:inverted)
end
# Returns an object that responds to:
- # [:token] => 1.23 # (a weight)
+ # [:token] # => 1.23 (a weight)
#
def create_weights bundle
JSON.new bundle.index_path(:weights)
end
# Returns an object that responds to:
- # [:encoded] => [:original, :original] # (an array of original symbols this similarity encoded thing maps to)
+ # [:encoded] # => [:original, :original] (an array of original symbols this similarity encoded thing maps to)
#
def create_similarity bundle
JSON.new bundle.index_path(:similarity)
end
# Returns an object that responds to:
- # [:key] => value # (a value for this config key)
+ # [:key] # => value (a value for this config key)
#
def create_configuration bundle
JSON.new bundle.index_path(:configuration)
View
8 server/lib/picky/backends/memory.rb
@@ -5,25 +5,25 @@ module Backends
class Memory < Backend
# Returns an object that responds to:
- # [:token] => [id, id, id, id, id] # (an array of ids)
+ # [:token] # => [id, id, id, id, id] (an array of ids)
#
def create_inverted bundle
JSON.new bundle.index_path(:inverted)
end
# Returns an object that responds to:
- # [:token] => 1.23 # (a weight)
+ # [:token] # => 1.23 (a weight)
#
def create_weights bundle
JSON.new bundle.index_path(:weights)
end
# Returns an object that responds to:
- # [:encoded] => [:original, :original] # (an array of original symbols this similarity encoded thing maps to)
+ # [:encoded] # => [:original, :original] (an array of original symbols this similarity encoded thing maps to)
#
def create_similarity bundle
Marshal.new bundle.index_path(:similarity)
end
# Returns an object that responds to:
- # [:key] => value # (a value for this config key)
+ # [:key] # => value (a value for this config key)
#
def create_configuration bundle
JSON.new bundle.index_path(:configuration)
View
8 server/lib/picky/backends/redis.rb
@@ -13,25 +13,25 @@ def initialize options = {}
end
# Returns an object that responds to:
- # [:token] => [id, id, id, id, id] # (an array of ids)
+ # [:token] # => [id, id, id, id, id] (an array of ids)
#
def create_inverted bundle
List.new client, "#{bundle.identifier}:inverted"
end
# Returns an object that responds to:
- # [:token] => 1.23 # (a weight)
+ # [:token] # => 1.23 (a weight)
#
def create_weights bundle
Float.new client, "#{bundle.identifier}:weights"
end
# Returns an object that responds to:
- # [:encoded] => [:original, :original] # (an array of original symbols this similarity encoded thing maps to)
+ # [:encoded] # => [:original, :original] (an array of original symbols this similarity encoded thing maps to)
#
def create_similarity bundle
List.new client, "#{bundle.identifier}:similarity"
end
# Returns an object that responds to:
- # [:key] => value # (a value for this config key)
+ # [:key] # => value (a value for this config key)
#
def create_configuration bundle
String.new client, "#{bundle.identifier}:configuration"
Please sign in to comment.
Something went wrong with that request. Please try again.