Exception: Scientist::BehaviorNotUnique

Inherits:
BadBehavior
  • Object
show all
Defined in:
lib/scientist/errors.rb

Instance Attribute Summary

Attributes inherited from BadBehavior

#experiment, #name

Instance Method Summary collapse

Constructor Details

#initialize(experiment, name) ⇒ BehaviorNotUnique

Returns a new instance of BehaviorNotUnique.



24
25
26
27
# File 'lib/scientist/errors.rb', line 24

def initialize(experiment, name)
  super experiment, name,
    "#{experiment.name} alread has #{name} behavior"
end