Module: Invar::TestExtension::RealityMethods

Included in:
Reality
Defined in:
lib/invar/test.rb

Overview

Methods to extend the Reality class

Class Attribute Summary collapse

Instance Method Summary collapse

Class Attribute Details

.__after_load_hooks__Object

Returns the value of attribute after_load_hooks.



15
16
17
# File 'lib/invar/test.rb', line 15

def __after_load_hooks__
  @__after_load_hooks__
end

Instance Method Details

#initializeObject



20
21
22
23
24
25
# File 'lib/invar/test.rb', line 20

def initialize(**)
   super

   # instance_eval(&self.class.__override_block__)
   RealityMethods.__after_load_hooks__.each { |hook| hook.call(self) }
end