Sha256: 807507190b01e7da85292ee37ece9c3a34ed0befc70116869b100153fb8c9315

Contents?: true

Size: 396 Bytes

Versions: 7

Compression:

Stored size: 396 Bytes

Contents

# frozen_string_literal: true

require "pakyow/support/extension"

module Pakyow
  module Behavior
    module Plugins
      extend Support::Extension

      apply_extension do
        class_state :plugins, default: {}
      end

      class_methods do
        def register_plugin(plugin_name, plugin_module)
          @plugins[plugin_name] = plugin_module
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pakyow-core-1.0.6 lib/pakyow/behavior/plugins.rb
pakyow-core-1.0.5 lib/pakyow/behavior/plugins.rb
pakyow-core-1.0.4 lib/pakyow/behavior/plugins.rb
pakyow-core-1.0.3 lib/pakyow/behavior/plugins.rb
pakyow-core-1.0.2 lib/pakyow/behavior/plugins.rb
pakyow-core-1.0.1 lib/pakyow/behavior/plugins.rb
pakyow-core-1.0.0 lib/pakyow/behavior/plugins.rb