Module: ConfCtl::Swpins::Spec

Defined in:
lib/confctl/swpins/spec.rb

Class Method Summary collapse

Class Method Details

.for(name) ⇒ Class

Parameters:

  • name (Symbol)

Returns:

  • (Class)


12
13
14
# File 'lib/confctl/swpins/spec.rb', line 12

def self.for(name)
  @specs[name]
end

.register(name, klass) ⇒ Object

Parameters:

  • name (Symbol)
  • klass (Class)


5
6
7
8
# File 'lib/confctl/swpins/spec.rb', line 5

def self.register(name, klass)
  @specs ||= {}
  @specs[name] = klass
end