module Attributor::Container

Public Class Methods

included(klass) click to toggle source

Module for types that can contain subtypes. Collection.of(?) or Hash.of(?)

# File lib/attributor/types/container.rb, line 4
def self.included(klass)
  klass.module_eval do
    include Attributor::Type
  end
  klass.extend(ClassMethods)
end