Sha256: 437e8a406101fb13484cb6cfb5c76ad5eb0a5db12838a238c0cdef4d95eccc77
Contents?: true
Size: 612 Bytes
Versions: 16
Compression:
Stored size: 612 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.name end end end end
Version data entries
16 entries across 16 versions & 1 rubygems