Method: FiniteMachine::Definition.inherited

Defined in:
lib/finite_machine/definition.rb

.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.

Add deferred methods to the subclass

Parameters:

  • subclass (Class)

    the inheriting subclass



62
63
64
65
66
# File 'lib/finite_machine/definition.rb', line 62

def self.inherited(subclass)
  super

  deferreds.each { |d| subclass.add_deferred(d) }
end