Method: Roby::Application#on_clear_models
- Defined in:
- lib/roby/app.rb
#on_clear_models(user: false, &block) ⇒ Object
Declares that the following block should be called when #clear_models is called
1310 1311 1312 1313 1314 1315 1316 |
# File 'lib/roby/app.rb', line 1310 def on_clear_models(user: false, &block) unless block raise ArgumentError, "missing expected block argument" end add_lifecyle_hook(clear_models_handlers, block, user: user) end |