class Maglove::Engine::Registry

Attributes

widgets[R]

Public Class Methods

new() click to toggle source
# File lib/maglove/engine/registry.rb, line 7
def initialize
  @widgets = {}
end

Public Instance Methods

register_widget(identifier, klass) click to toggle source
# File lib/maglove/engine/registry.rb, line 11
def register_widget(identifier, klass)
  widgets[identifier] = klass
end