Sha256: 4f1177ccd0a5adc947664a7e01b5a1b4246d30dcba815f132eac6842bfa39491

Contents?: true

Size: 291 Bytes

Versions: 42

Compression:

Stored size: 291 Bytes

Contents

module Lono::AppFile
  class Registry
    @@items = []
    class << self
      def register(name, blueprint, options={})
        @@items << Item.new(name, blueprint, options) unless @@items.detect { |i| i.name == name }
      end

      def items
        @@items
      end
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
lono-7.2.3 lib/lono/app_file/registry.rb
lono-7.2.2 lib/lono/app_file/registry.rb
lono-7.2.1 lib/lono/app_file/registry.rb
lono-7.2.0 lib/lono/app_file/registry.rb
lono-7.1.0 lib/lono/app_file/registry.rb
lono-7.0.5 lib/lono/app_file/registry.rb
lono-7.0.4 lib/lono/app_file/registry.rb
lono-7.0.3 lib/lono/app_file/registry.rb
lono-7.0.2 lib/lono/app_file/registry.rb
lono-7.0.1 lib/lono/app_file/registry.rb
lono-7.0.0 lib/lono/app_file/registry.rb
lono-6.1.11 lib/lono/app_file/registry.rb
lono-6.1.10 lib/lono/app_file/registry.rb
lono-6.1.9 lib/lono/app_file/registry.rb
lono-6.1.8 lib/lono/app_file/registry.rb
lono-6.1.7 lib/lono/app_file/registry.rb
lono-6.1.6 lib/lono/app_file/registry.rb
lono-6.1.5 lib/lono/app_file/registry.rb
lono-6.1.4 lib/lono/app_file/registry.rb
lono-6.1.3 lib/lono/app_file/registry.rb