Module: Dependabot::Experiments

Extended by:
T::Sig
Defined in:
lib/dependabot/experiments.rb

Class Method Summary collapse

Class Method Details

.enabled?(name) ⇒ Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/dependabot/experiments.rb', line 23

def self.enabled?(name)
  !!@experiments[name.to_sym]
end

.register(name, value) ⇒ Object



18
19
20
# File 'lib/dependabot/experiments.rb', line 18

def self.register(name, value)
  @experiments[name.to_sym] = value
end

.reset!Object



13
14
15
# File 'lib/dependabot/experiments.rb', line 13

def self.reset!
  @experiments = {}
end