Class: Gem::Release::Registry::Registry

Inherits:
Object
  • Object
show all
Defined in:
lib/gem/release/support/registry.rb

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ Object


16
17
18
# File 'lib/gem/release/support/registry.rb', line 16

def [](key)
  key && registry[key.to_sym]
end

#[]=(key, object) ⇒ Object


12
13
14
# File 'lib/gem/release/support/registry.rb', line 12

def []=(key, object)
  registry[key.to_sym] = object
end

#cmdsObject


20
21
22
# File 'lib/gem/release/support/registry.rb', line 20

def cmds
  registry.values
end

#registryObject


24
25
26
# File 'lib/gem/release/support/registry.rb', line 24

def registry
  @registry ||= {}
end