Method: Lita::PluginBuilder#initialize

Defined in:
lib/lita/plugin_builder.rb

#initialize(namespace) { ... } ⇒ PluginBuilder

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of PluginBuilder.

Parameters:

  • namespace (String, Symbol)

    The Redis namespace to use for the plugin.

Yields:

  • The class body of the plugin.

Since:

  • 4.0.0



8
9
10
11
# File 'lib/lita/plugin_builder.rb', line 8

def initialize(namespace, &block)
  @namespace = namespace.to_s
  @block = block
end