Module: ROM::Global

Included in:
ROM
Defined in:
core/lib/rom/global.rb,
core/lib/rom/global/plugin_dsl.rb

Overview

Globally accessible public interface exposed via ROM module

Defined Under Namespace

Classes: PluginDSL

Instance Method Summary collapse

Instance Method Details

#plugins(*args, &block) ⇒ Object

Global plugin setup DSL

Examples:

ROM.plugins do
  register :publisher, Plugin::Publisher, type: :command
end


43
44
45
# File 'core/lib/rom/global.rb', line 43

def plugins(*args, &block)
  PluginDSL.new(plugin_registry, *args, &block)
end