Sha256: c1ae1dcd8ad821f1bc9650c20ce8c8aba15ea89f5a9dcd9aa2f7380468f64da8

Contents?: true

Size: 614 Bytes

Versions: 15

Compression:

Stored size: 614 Bytes

Contents

# Registry [![Build Status](https://travis-ci.org/svenfuchs/registry.svg?branch=master)](https://travis-ci.org/svenfuchs/registry)

Ruby class registry for registering, and looking up classes using a key, rather
than the class name. Decouples looking up classes from their name and namespace.

## Installation

```
gem install regstry
```

Note the missing `i` in the gem name. The name `registry` is taken by another gem.

## Usage

```ruby
require 'registry'

class Obj
  include Registry
end

class One < Obj
  register :one
end

class Two < Obj
  register :two
end

one = Obj[:one].new
two = Obj[:two].new
```

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
regstry-1.0.15 README.md
regstry-1.0.14 README.md
regstry-1.0.13 README.md
regstry-1.0.12 README.md
regstry-1.0.11 README.md
regstry-1.0.10 README.md
regstry-1.0.9 README.md
regstry-1.0.8 README.md
regstry-1.0.7 README.md
regstry-1.0.6 README.md
regstry-1.0.5 README.md
regstry-1.0.4 README.md
regstry-1.0.3 README.md
regstry-1.0.2 README.md
regstry-1.0.1 README.md