kit-contract
kit-contract

edge

  • Guides
  • Modules
    kit-contract edge

    Contract module
    Kit::Contract
    View Source

    rubocop:disable Style/Documentation


    Link to this section Summary ⚠️ Private APIs are currently hidden.

    Defined in: lib/kit/contract.rb#4

    Modules 3

    BuiltInContracts

    This module contains some Built-in Contracts The easiest way to use them is to include `Kit::Contract::BuiltInContracts` in your class/module.

    Mixin

    Mixin that add `after`, `before`, `contract` class methods to enforce contracts on method signature.

    Services

    Namespace for Kit::Contract Services.

    Classes 2

    Engine

    The Engine is mainly used to handle all autoloading.

    Error

    When using contracts on method signatures (through `before`, `after`, `contract`) a `Kit::Contract::Error` exception is raised when a contract failure happens.

    Constants 1

    VERSION


    Link to this section Constants 1

    Link to this constant

    VERSION

    View Source
    '0.1.0'

    Built on 2020-06-21 by yard-0.9.25 with Kit::Doc, designed by Friedel Ziegelmayer for ExDoc.