Module: HotCocoa::Behaviors
- Included in:
- NSURL
- 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)
-
+ (Object) included(klass)
Implements the callback
Module#included; this method declares that whenHotCocoa::Behaviorsis mixed in to a class that the class mixing inHotCocoa::Behaviorswill gain all the HotCocoa customizations made to its superclasses.
Class Method Details
+ (Object) included(klass)
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 |