Sha256: 211d6054d78f4e60085fe17b38b5f5e91f638ba286e19a90f427643235130185
Contents?: true
Size: 674 Bytes
Versions: 13
Compression:
Stored size: 674 Bytes
Contents
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}(#{[inverted, weights, similarity, configuration].join(', ')})" end end end end
Version data entries
13 entries across 13 versions & 1 rubygems