Sha256: 5fd49c359a3d82bda69fed205d6930faf0555192e32c86c3cdc93eb7ecf68a4b

Contents?: true

Size: 508 Bytes

Versions: 5

Compression:

Stored size: 508 Bytes

Contents

module Picky

  #
  #
  class Index

    forward :remove,  # aka "delete".
            :add,     # aka "insert".
            :replace, # aka "insert or update". Thus, not called update.
            :replace_from,
            :clear_realtime,
            :build_realtime_mapping,
            :to => :categories

    # Add at the end.
    #
    def << thing
      add thing, __method__
    end

    # Add at the beginning (calls add).
    #
    def unshift thing
      add thing, __method__
    end

  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
picky-4.12.6 lib/picky/index_realtime.rb
picky-4.12.5 lib/picky/index_realtime.rb
picky-4.12.4 lib/picky/index_realtime.rb
picky-4.12.3 lib/picky/index_realtime.rb
picky-4.12.2 lib/picky/index_realtime.rb