Sha256: e44e8e9e458acf95b27dcafcbe91f90d68e0b56afef62de95ea72990b431f329

Contents?: true

Size: 515 Bytes

Versions: 17

Compression:

Stored size: 515 Bytes

Contents

module Picky

  #
  #
  class Index

    delegate :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

17 entries across 17 versions & 1 rubygems

Version Path
picky-4.12.1 lib/picky/index_realtime.rb
picky-4.12.0 lib/picky/index_realtime.rb
picky-4.11.3 lib/picky/index_realtime.rb
picky-4.11.2 lib/picky/index_realtime.rb
picky-4.11.1 lib/picky/index_realtime.rb
picky-4.11.0 lib/picky/index_realtime.rb
picky-4.10.0 lib/picky/index_realtime.rb
picky-4.9.0 lib/picky/index_realtime.rb
picky-4.8.1 lib/picky/index_realtime.rb
picky-4.8.0 lib/picky/index_realtime.rb
picky-4.7.0 lib/picky/index_realtime.rb
picky-4.6.6 lib/picky/index_realtime.rb
picky-4.6.5 lib/picky/index_realtime.rb
picky-4.6.4 lib/picky/index_realtime.rb
picky-4.6.3 lib/picky/index_realtime.rb
picky-4.6.2 lib/picky/index_realtime.rb
picky-4.6.1 lib/picky/index_realtime.rb