Exception: Scientist::BadBehavior

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

Overview

Smoking in the bathroom and/or sassing.

Direct Known Subclasses

BehaviorMissing, BehaviorNotUnique

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(experiment, name, message) ⇒ BadBehavior

Returns a new instance of BadBehavior.



8
9
10
11
12
13
# File 'lib/scientist/errors.rb', line 8

def initialize(experiment, name, message)
  @experiment = experiment
  @name = name

  super message
end

Instance Attribute Details

#experimentObject (readonly)

Returns the value of attribute experiment.



5
6
7
# File 'lib/scientist/errors.rb', line 5

def experiment
  @experiment
end

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/scientist/errors.rb', line 6

def name
  @name
end