Sha256: 6e394418a1fde987bf7d6a07ad0d4cf3e3572e9a6db79c59e4da8794b2ed066a

Contents?: true

Size: 533 Bytes

Versions: 29

Compression:

Stored size: 533 Bytes

Contents

module Picky

  #
  #
  class Index

    delegate :remove,  # aka "delete".
             :add,     # aka "insert".
             :replace, # aka "insert or update". Thus, not called update.
             :replace_from, # TODO Naming ok?
             :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

29 entries across 29 versions & 1 rubygems

Version Path
picky-4.6.0 lib/picky/index_realtime.rb
picky-4.5.12 lib/picky/index_realtime.rb
picky-4.5.11 lib/picky/index_realtime.rb
picky-4.5.10 lib/picky/index_realtime.rb
picky-4.5.9 lib/picky/index_realtime.rb
picky-4.5.8 lib/picky/index_realtime.rb
picky-4.5.7 lib/picky/index_realtime.rb
picky-4.5.6 lib/picky/index_realtime.rb
picky-4.5.5 lib/picky/index_realtime.rb
picky-4.5.4 lib/picky/index_realtime.rb
picky-4.5.3 lib/picky/index_realtime.rb
picky-4.5.2 lib/picky/index_realtime.rb
picky-4.5.1 lib/picky/index_realtime.rb
picky-4.5.0 lib/picky/index_realtime.rb
picky-4.4.2 lib/picky/index_realtime.rb
picky-4.4.1 lib/picky/index_realtime.rb
picky-4.4.0 lib/picky/index_realtime.rb
picky-4.3.2 lib/picky/index_realtime.rb
picky-4.3.1 lib/picky/index_realtime.rb
picky-4.3.0 lib/picky/index_realtime.rb