Sha256: f5db356618572a74fa4da155c72e0a83a7fcaf472c79df97d2a74db75762ab2e
Contents?: true
Size: 722 Bytes
Versions: 5
Compression:
Stored size: 722 Bytes
Contents
module Picky # # class Index forward :remove, # aka "delete". # :add, # aka "insert". # See below. :replace, # aka "delete then insert". :update, :replace_from, :clear_realtime, :build_realtime_mapping, :to => :categories # Add at the end. # def << thing add thing, method: __method__ end # Add at the beginning (calls add). # def unshift thing add thing, method: __method__ end # Add to the index using unshift. # def add thing, method: :unshift, force_update: false categories.add thing, method: method, force_update: force_update end end end
Version data entries
5 entries across 5 versions & 1 rubygems