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.15.0 lib/minke/generators/register.rb
minke-1.14.5 lib/minke/generators/register.rb
minke-1.14.4 lib/minke/generators/register.rb
minke-1.14.3 lib/minke/generators/register.rb
minke-1.14.2 lib/minke/generators/register.rb
minke-1.14.1 lib/minke/generators/register.rb
minke-1.14.0 lib/minke/generators/register.rb
minke-1.13.20 lib/minke/generators/register.rb
minke-1.13.19 lib/minke/generators/register.rb
minke-1.13.18 lib/minke/generators/register.rb
minke-1.13.16 lib/minke/generators/register.rb
minke-1.13.15 lib/minke/generators/register.rb
minke-1.13.14 lib/minke/generators/register.rb
minke-1.13.13 lib/minke/generators/register.rb
minke-1.13.12 lib/minke/generators/register.rb
minke-1.13.11 lib/minke/generators/register.rb
minke-1.13.10 lib/minke/generators/register.rb
minke-1.13.9 lib/minke/generators/register.rb
minke-1.13.8 lib/minke/generators/register.rb
minke-1.13.7 lib/minke/generators/register.rb