module Adaptor::Loader

An adaptor loader holds and loads the adapter(s) which support an object.

@example Defining a loader

module NotificationProcessor
  include Adaptor::Loader
  register Email, Sms
end

Public Class Methods

included(klass) click to toggle source
# File lib/adaptor/loader.rb, line 12
def self.included(klass)
  klass.extend ClassMethods
end