Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (24 sloc) 0.612 kB
module Picky
module Backends
class Backend
attr_reader :inverted,
:weights,
:similarity,
:configuration
def initialize options = {}
@inverted = options[:inverted]
@weights = options[:weights]
@similarity = options[:similarity]
@configuration = options[:configuration]
end
def extract_lambda_or thing, *args
thing && (thing.respond_to?(:call) && thing.call(*args) || thing)
end
#
#
def to_s
self.class.name
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.