Method: Roby::Application#on_cleanup

Defined in:
lib/roby/app.rb

#on_cleanup(user: false, &block) ⇒ Object

Declares that the following block should be called when #clear_models is called



1334
1335
1336
1337
1338
1339
1340
# File 'lib/roby/app.rb', line 1334

def on_cleanup(user: false, &block)
    unless block
        raise ArgumentError, "missing expected block argument"
    end

    add_lifecyle_hook(cleanup_handlers, block, user: user)
end