Sha256: 37e7afbf03ca7cab379f2077175b9d8c6d28c11231b4b7df35ec834d733387fe

Contents?: true

Size: 323 Bytes

Versions: 28

Compression:

Stored size: 323 Bytes

Contents

module Unleash
  module Strategy
    class NotImplemented < RuntimeError
    end

    class Base
      def name
        raise NotImplemented, "Strategy is not implemented"
      end

      def is_enabled?(_params = {}, _context = nil)
        raise NotImplemented, "Strategy is not implemented"
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
unleash-4.1.0 lib/unleash/strategy/base.rb
unleash-4.0.0 lib/unleash/strategy/base.rb
unleash-3.2.5 lib/unleash/strategy/base.rb
unleash-3.2.4 lib/unleash/strategy/base.rb
unleash-3.2.3 lib/unleash/strategy/base.rb
unleash-3.2.2 lib/unleash/strategy/base.rb
unleash-3.2.1 lib/unleash/strategy/base.rb
unleash-3.2.0 lib/unleash/strategy/base.rb