Module: Attributor::Container
- Included in:
- Collection, Hash
- Defined in:
- lib/attributor/types/container.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
-
.included(klass) ⇒ Object
Module for types that can contain subtypes.
Class Method Details
.included(klass) ⇒ Object
Module for types that can contain subtypes. Collection.of(?) or Hash.of(?)
4 5 6 7 8 9 |
# File 'lib/attributor/types/container.rb', line 4 def self.included(klass) klass.module_eval do include Attributor::Type end klass.extend(ClassMethods) end |