Sha256: 3e1caa90833995d53cb76548134762c3589fb40a908d41f9d8dff706d2017ff0

Contents?: true

Size: 884 Bytes

Versions: 10

Compression:

Stored size: 884 Bytes

Contents

module Indexed
  module Wrappers

    # Per Bundle wrappers.
    #
    module Bundle

      # Base wrapper. Just delegates all methods to the bundle.
      #
      class Wrapper

        attr_reader :bundle

        def initialize bundle
          @bundle = bundle
        end

        delegate :load,
                 :load_index,
                 :load_weights,
                 :load_similarity,
                 :load_configuration,
                 :clear_index,
                 :clear_weights,
                 :clear_similarity,
                 :clear_configuration,
                 :ids,
                 :weight,
                 :identifier,
                 :analyze,
                 :size,
                 :index,
                 :weights,
                 :similarity,
                 :configuration,
                 :to => :@bundle

      end

    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
picky-2.6.0 lib/picky/indexed/wrappers/bundle/wrapper.rb
picky-2.1.2 lib/picky/internals/indexed/wrappers/bundle/wrapper.rb
picky-2.1.1 lib/picky/internals/indexed/wrappers/bundle/wrapper.rb
picky-2.1.0 lib/picky/internals/indexed/wrappers/bundle/wrapper.rb
picky-2.0.0 lib/picky/internals/indexed/wrappers/bundle/wrapper.rb
picky-2.0.0.pre3 lib/picky/internals/indexed/wrappers/bundle/wrapper.rb
picky-2.0.0.pre2 lib/picky/internals/indexed/wrappers/bundle/wrapper.rb
picky-2.0.0.pre1 lib/picky/internals/indexed/wrappers/bundle/wrapper.rb
picky-1.5.4 lib/picky/internals/indexed/wrappers/bundle/wrapper.rb
picky-1.5.3 lib/picky/internals/indexed/wrappers/bundle/wrapper.rb