Module: Sheetah::Utils::MonadicResult
- Included in:
- Headers, RowValueBuilder, SheetProcessor, Types::CastChain
- Defined in:
- lib/sheetah/utils/monadic_result.rb
Defined Under Namespace
Modules: Result Classes: Failure, Success
Constant Summary collapse
- Unit =
Unit is a singleton, and is used when there is no other meaningful value that could be returned.
It allows the Result implementation to distinguish between a null value (i.e.
nil) and the lack of a value, to provide adequate behavior in each case.The Result API should not expose Unit directly to its consumers.
Object.new
Instance Method Summary collapse
- #Do(&block) ⇒ Object
- #Failure ⇒ Object
-
#Success ⇒ Object
rubocop:disable Naming/MethodName.