Permalink
Browse files

! doc

  • Loading branch information...
1 parent 27bf3db commit 222c07a88747acdb4892bb1f8112266607570bed @floere committed Aug 28, 2011
Showing with 12 additions and 12 deletions.
  1. +4 −4 server/lib/picky/backends/file.rb
  2. +4 −4 server/lib/picky/backends/memory.rb
  3. +4 −4 server/lib/picky/backends/redis.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)
@@ -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)
@@ -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"

0 comments on commit 222c07a

Please sign in to comment.