Module: Ruckus::StructureInitializers
- Included in:
- Structure
- Defined in:
- lib/ruckus/structure/initializers.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/ruckus/structure/initializers.rb', line 3 def self.included(klass) klass.class_eval { class_inheritable_array :initializers write_inheritable_array :initializers, [] } end |
Instance Method Details
#final_initialization_hook ⇒ Object
10 11 12 |
# File 'lib/ruckus/structure/initializers.rb', line 10 def final_initialization_hook self.initializers.each {|cb| self.instance_eval(&cb) } end |