Module: HatiCommand::Befehl

Defined in:
lib/hati_command/befehl.rb

Overview

Core module for command handling that provides the base functionality for creating commands. This module is designed to be extended by classes that need command handling capabilities.

Defined Under Namespace

Modules: BefehlClassMethods

Class Method Summary collapse

Class Method Details

.extended(base) ⇒ void

This method returns an undefined value.

Extends the base class with command handling functionality

Parameters:

  • base (Class)

    the class that is extending this module



14
15
16
17
18
19
20
# File 'lib/hati_command/befehl.rb', line 14

def self.extended(base)
  base.extend(BefehlClassMethods)
  def base.inherited(subclass)
    super
    subclass.instance_variable_set(:@__command_config, @__command_config.dup)
  end
end