Sha256: 9f56efbb7820668a76a256bb1f78f01c209cc243d08e1afdecfe6c06f3573cd1

Contents?: true

Size: 354 Bytes

Versions: 4

Compression:

Stored size: 354 Bytes

Contents

module BioInterchange

class Registry

  def self.register_reader(uid, service)
    @@readers[uid] = service
  end

  def self.register_writer(uid, service)
    @@writers[uid] = service
  end

  def self.readers
    @@readers.clone.freeze
  end

  def self.writers
    @@writers.clone.freeze
   end

private

  @@readers = {}
  @@writers = {}

end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
biointerchange-0.2.1 lib/biointerchange/registry.rb
biointerchange-0.2.0 lib/biointerchange/registry.rb
biointerchange-0.1.3 lib/biointerchange/registry.rb
biointerchange-0.1.2 lib/biointerchange/registry.rb