Method: Roby::Application#clear_model?
- Defined in:
- lib/roby/app.rb
#clear_model?(m) ⇒ Boolean
Whether this model should be cleared in #clear_models
The default implementation returns true for the models that are not registered as constants (more precisely, for which MetaRuby’s #permanent_model? returns false) and for the models defined in this app.
3033 3034 3035 3036 |
# File 'lib/roby/app.rb', line 3033 def clear_model?(m) !m.permanent_model? || (!testing? && model_defined_in_app?(m)) end |