Method: Roby::Application#clear_models
- Defined in:
- lib/roby/app.rb
#clear_models ⇒ Object
Clear all models for which #clear_model? returns true
3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 |
# File 'lib/roby/app.rb', line 3039 def clear_models root_models.each do |root_model| submodels = root_model.each_submodel.to_a.dup submodels.each do |m| if clear_model?(m) m.permanent_model = false m.clear_model end end end DRoby::V5::DRobyConstant.clear_cache clear_models_handlers.each(&:call) call_plugins(:clear_models, self) unload_features("models", ".*\.rb$") additional_model_files.each do |path| unload_features(path) end cleanup_user_lifecycle_hooks(clear_models_handlers) end |