Module: Servus::Support::Lockdown::Inherited Private

Defined in:
lib/servus/support/lockdown.rb

Overview

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

Prepended onto the base class’s singleton so that every subclass of Base is automatically extended with PrivateCall at class-definition time.

Instance Method Summary collapse

Instance Method Details

#inherited(subclass) ⇒ void

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.

This method returns an undefined value.

Ensures each subclass has the ‘method_added` hook installed.

Parameters:

  • subclass (Class)

    the newly defined subclass



55
56
57
58
# File 'lib/servus/support/lockdown.rb', line 55

def inherited(subclass)
  super
  subclass.extend(PrivateCall)
end