Method: Roby::Application#add_plugin

Defined in:
lib/roby/app.rb

#add_plugin(name, mod) ⇒ Object



1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
# File 'lib/roby/app.rb', line 1481

def add_plugin(name, mod)
    plugins << [name, mod]
    extend mod
    # If +load+ has already been called, call it on the module
    if mod.respond_to?(:load) && options
        mod.load(self, options)
    end

    # Refresh the relation sets in #plan to include relations
    # possibly added by the plugin
    plan.refresh_relations

    mod
end