Module: Bridgetown::Commands::Registrations

Defined in:
lib/bridgetown-core/commands/registrations.rb

Class Method Summary collapse

Class Method Details

.register(&block) ⇒ Object



10
11
12
# File 'lib/bridgetown-core/commands/registrations.rb', line 10

def self.register(&block)
  registrations << block
end

.registrationsObject



6
7
8
# File 'lib/bridgetown-core/commands/registrations.rb', line 6

def self.registrations
  @registrations ||= []
end