class LeftValuable[L, R] extends AnyRef
Wrapper class that adds a value
method to LeftProjection
, allowing
you to make statements like:
either.left.value should be > 9
- Source
- EitherValues.scala
- Alphabetic
- By Inheritance
- LeftValuable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
LeftValuable(leftProj: LeftProjection[L, R], pos: Position)
- leftProj
A
LeftProjection
to convert toLeftValuable
, which provides thevalue
method.
Value Members
-
def
value: L
Returns the
Left
value contained in the wrappedLeftProjection
, if defined as aLeft
, else throwsTestFailedException
with a detail message indicating theEither
was defined as aRight
, not aLeft
.Returns the
Left
value contained in the wrappedLeftProjection
, if defined as aLeft
, else throwsTestFailedException
with a detail message indicating theEither
was defined as aRight
, not aLeft
.