Sha256: cead977b14ca1982b584f5386d4ea67ac16613287e48e2cc777e3ffe9646621b

Contents?: true

Size: 893 Bytes

Versions: 1

Compression:

Stored size: 893 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_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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
picky-2.7.0 lib/picky/indexed/wrappers/bundle/wrapper.rb