Module: Dependabot::Experiments

Defined in:
lib/dependabot/experiments.rb

Class Method Summary collapse

Class Method Details

.enabled?(name) ⇒ Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/dependabot/experiments.rb', line 16

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

.register(name, value) ⇒ Object



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

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

.reset!Object



8
9
10
# File 'lib/dependabot/experiments.rb', line 8

def self.reset!
  @experiments = {}
end