Method: Roby::Application#on_init
- Defined in:
- lib/roby/app.rb
#on_init(user: false, &block) ⇒ Object
Declares a block that should be executed when the Roby app gets initialized (i.e. just after init.rb gets loaded)
1259 1260 1261 1262 1263 1264 1265 |
# File 'lib/roby/app.rb', line 1259 def on_init(user: false, &block) unless block raise ArgumentError, "missing expected block argument" end add_lifecyle_hook(init_handlers, block, user: user) end |