Sha256: 9e5113af455f905545df2a2d5da2178c36f67c399332b3c52719f7ee51fdd594

Contents?: true

Size: 462 Bytes

Versions: 10

Compression:

Stored size: 462 Bytes

Contents

module Picky

  #
  #
  class Index

    delegate :remove,  # aka "delete".
             :add,     # aka "insert".
             :replace, # aka "insert or update".
             :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

10 entries across 10 versions & 1 rubygems

Version Path
picky-4.0.0pre1 lib/picky/index_realtime.rb
picky-3.6.16 lib/picky/index_realtime.rb
picky-3.6.15 lib/picky/index_realtime.rb
picky-3.6.14 lib/picky/index_realtime.rb
picky-3.6.13 lib/picky/index_realtime.rb
picky-3.6.12 lib/picky/index_realtime.rb
picky-3.6.11 lib/picky/index_realtime.rb
picky-3.6.10 lib/picky/index_realtime.rb
picky-3.6.9 lib/picky/index_realtime.rb
picky-3.6.8 lib/picky/index_realtime.rb