Module: HotCocoa::Behaviors
- Defined in:
- lib/hotcocoa/behaviors.rb
Overview
A mixin module for classes that subclass Cocoa classes and want to also inherit HotCocoa customizations (custom methods, constants, etc.)
Class Method Summary collapse
-
.included(klass) ⇒ Object
Implements the callback
Module#included
; this method declares that whenHotCocoa::Behaviors
is mixed in to a class that the class mixing inHotCocoa::Behaviors
will gain all the HotCocoa customizations made to its superclasses.
Class Method Details
.included(klass) ⇒ Object
Implements the callback Module#included
; this method declares that
when HotCocoa::Behaviors
is mixed in to a class that the class mixing
in HotCocoa::Behaviors
will gain all the HotCocoa customizations made
to its superclasses.
30 31 32 |
# File 'lib/hotcocoa/behaviors.rb', line 30 def self.included klass HotCocoa::Mappings::Mapper.map_class klass end |