Sha256: 218f1d13f2226cbd72e0933c18fa2356df0a3fda9d73adf1ea1fa4a17b1fb79b

Contents?: true

Size: 982 Bytes

Versions: 22

Compression:

Stored size: 982 Bytes

Contents

module Picky

  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_inverted,
                   :load_weights,
                   :load_similarity,
                   :load_configuration,
                   :clear_inverted,
                   :clear_weights,
                   :clear_similarity,
                   :clear_configuration,
                   :ids,
                   :weight,
                   :identifier,
                   :analyze,
                   :size,
                   :inverted,
                   :weights,
                   :similarity,
                   :configuration,
                   :to => :@bundle

        end

      end

    end
  end

end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
picky-3.0.0.pre2 lib/picky/indexed/wrappers/bundle/wrapper.rb
picky-3.0.0.pre1 lib/picky/indexed/wrappers/bundle/wrapper.rb