Class RubiGen::Commands::Base
In: lib/rubigen/commands.rb
Parent: DelegateClass(RubiGen::Base)

Generator commands delegate RubiGen::Base and implement a standard set of actions. Their behavior is defined by the way they respond to these actions: Create brings life; Destroy brings death; List passively observes.

Commands are invoked by replaying (or rewinding) the generator‘s manifest of actions. See RubiGen::Manifest and RubiGen::Base#manifest method that generator subclasses are required to override.

Commands allows generators to "plug in" invocation behavior, which corresponds to the GoF Strategy pattern.

Methods

Public Instance methods

Does nothing for all commands except Create.

Replay action manifest. RewindBase subclass rewinds manifest.

Does nothing for all commands except Create.

Does nothing for all commands except Create.

Protected Instance methods

[Validate]