Method: Micronaut::Behaviour.eval_after_alls
- Defined in:
- lib/micronaut/behaviour.rb
.eval_after_alls(running_behaviour) ⇒ Object
176 177 178 179 180 |
# File 'lib/micronaut/behaviour.rb', line 176 def self.eval_after_alls(running_behaviour) after_alls.each { |blk| running_behaviour.instance_eval(&blk) } Micronaut.configuration.find_before_or_after(:after, :all, self).each { |blk| running_behaviour.instance_eval(&blk) } before_all_ivars.keys.each { |ivar| before_all_ivars[ivar] = running_behaviour.instance_variable_get(ivar) } end |