Exception: WT::UnexpectedBodyPartFoundException
- Inherits:
-
Exception
- Object
- Exception
- WT::UnexpectedBodyPartFoundException
- Defined in:
- lib/assertion.rb
Instance Attribute Summary collapse
-
#body_part ⇒ Object
readonly
Returns the value of attribute body_part.
Instance Method Summary collapse
-
#initialize(body_part) ⇒ UnexpectedBodyPartFoundException
constructor
A new instance of UnexpectedBodyPartFoundException.
Constructor Details
#initialize(body_part) ⇒ UnexpectedBodyPartFoundException
Returns a new instance of UnexpectedBodyPartFoundException.
243 244 245 246 |
# File 'lib/assertion.rb', line 243 def initialize(body_part) super("Unexpected body part was found.") @body_part = body_part end |
Instance Attribute Details
#body_part ⇒ Object (readonly)
Returns the value of attribute body_part.
241 242 243 |
# File 'lib/assertion.rb', line 241 def body_part @body_part end |