Sha256: c221dfea0508e3149e1b2ffbd5764facf7cc11ba9342e7312a6fdce50e9e7ed6
Contents?: true
Size: 310 Bytes
Versions: 19
Compression:
Stored size: 310 Bytes
Contents
# frozen_string_literal: true module LedgerSync module Validatable def valid? validate.success? end def validate raise NotImplementedError end def validate_or_fail if valid? Resonad.Success(self) else Resonad.Failure end end end end
Version data entries
19 entries across 19 versions & 1 rubygems