module Snapi::Capability

This class is exists as a way of definining an API capability using a handy DSL to define functions, their arguments, arity, validations and return types.

Public Class Methods

included(klass) click to toggle source

When this module is included into a given Class this will wbe run. It will extend the clas with the methods found in the the Snapi::Capability::ClassMethods module and register the class in question with the Snapi module.

@params klass, Class

# File lib/snapi/capability.rb, line 14
def self.included(klass)
  klass.extend(ClassMethods)
  Snapi.register_capability(klass)
end