Sha256: 57e65abc58b2839f6ca5f13d64230e831f90a57a2924d84b913be0432ae4b28b

Contents?: true

Size: 309 Bytes

Versions: 27

Compression:

Stored size: 309 Bytes

Contents

module Minke
  module Generators
    @@registrations = []

    def register config
      puts "registered #{config.name}"
      
      @@registrations.push(config)
    end

    def get_registrations
      @@registrations
    end

    module_function :register
    module_function :get_registrations
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
minke-1.13.6 lib/minke/generators/register.rb
minke-1.13.5 lib/minke/generators/register.rb
minke-1.13.4 lib/minke/generators/register.rb
minke-1.13.3 lib/minke/generators/register.rb
minke-1.13.2 lib/minke/generators/register.rb
minke-1.13.1 lib/minke/generators/register.rb
minke-1.13.0 lib/minke/generators/register.rb