Exception: Scientist::BadBehavior
- Inherits:
-
StandardError
- Object
- StandardError
- Scientist::BadBehavior
- Defined in:
- lib/scientist/errors.rb
Overview
Smoking in the bathroom and/or sassing.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#experiment ⇒ Object
readonly
Returns the value of attribute experiment.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(experiment, name, message) ⇒ BadBehavior
constructor
A new instance of BadBehavior.
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, ) @experiment = experiment @name = name super end |
Instance Attribute Details
#experiment ⇒ Object (readonly)
Returns the value of attribute experiment.
5 6 7 |
# File 'lib/scientist/errors.rb', line 5 def experiment @experiment end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/scientist/errors.rb', line 6 def name @name end |