Module: PreAndPostInitialize
- Includes:
- ClassInstance
- Defined in:
- lib/pre_and_post_initialize.rb
Overview
Adds calls to #pre_initialize and #post_initialize before and after call to #initialize.
Defined Under Namespace
Modules: ClassInstance, ObjectInstance
Class Method Summary collapse
-
.extended(instance) ⇒ Object
self.extended #.
Methods included from ClassInstance
Class Method Details
.extended(instance) ⇒ Object
self.extended #
17 18 19 20 21 22 23 |
# File 'lib/pre_and_post_initialize.rb', line 17 def self.extended( instance ) super if defined?( super ) instance.class_eval { include( ::PreAndPostInitialize::ObjectInstance ) } end |