Sha256: 79fe1ae7064ac1e3d596974fafb1538c55da1ac313bd6a14098d6c3e3a50e049
Contents?: true
Size: 433 Bytes
Versions: 3
Compression:
Stored size: 433 Bytes
Contents
# frozen_string_literal: true # TODO: Move to bcdd-contract module BCDD::Contracts class << self private def contract ::BCDD::Contract end def register(**kargs) # TODO: Remove this method and make the use open BCDD::Contracts module to register contracts ::BCDD::Contract.register(**kargs) end end NotNil = contract[-> { _1.nil? and 'cannot be nil' }] register(not_nil: NotNil) end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bcdd-process-0.4.0 | lib/bcdd/ext/contracts.rb |
bcdd-process-0.3.1 | lib/bcdd/contracts.rb |
bcdd-process-0.3.0 | lib/bcdd/contracts.rb |