Sha256: 5dfc197aa73f174356e95f5d069fddc86e21a0f1de22350fa29bbbbb17543f41
Contents?: true
Size: 488 Bytes
Versions: 3
Compression:
Stored size: 488 Bytes
Contents
module Dolos class Result[A] end class Success[A] < Result[A] attr_reader captures: Array[untyped] attr_reader length: Integer attr_reader value: A def capture!: -> Success[A] def failure?: -> bool def success?: -> bool end class Failure < Result[bot] attr_reader committed: bool attr_reader message: String def captures: -> [] def failure?: -> bool def map: [B](^(bot) -> B) -> Result[B] def success?: -> bool end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dolos-0.1.2 | sig/dolos/result.rbs |
dolos-0.1.1 | sig/dolos/result.rbs |
dolos-0.1.0 | sig/dolos/result.rbs |