Sha256: a156bc77aa8809e5b0d416a46ed8db5f9f12e44386f12c9db2f83330f26a2044

Contents?: true

Size: 352 Bytes

Versions: 1

Compression:

Stored size: 352 Bytes

Contents

# frozen_string_literal: true

require 'bcdd/contract'

require_relative 'contracts'
require_relative 'contract/null'
require_relative 'contract/respond_to'

module BCDD::Contract
  # TODO: Move to bcdd-contract
  def self.type(arg)
    arg.is_a?(::Module) or raise ::ArgumentError, format('%p must be a class OR module', arg)

    unit(arg)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bcdd-process-0.4.0 lib/bcdd/ext/contract.rb