File: base.rb

package info (click to toggle)
ruby-unleash 3.2.5-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 252 kB
  • sloc: ruby: 1,098; makefile: 10; sh: 4
file content (16 lines) | stat: -rw-r--r-- 323 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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