Class: Nestene::Registry

Inherits:
Object
  • Object
show all
Defined in:
lib/nestene.rb

Class Method Summary collapse

Class Method Details

.register_auton(type) ⇒ Object



24
25
26
27
# File 'lib/nestene.rb', line 24

def self.register_auton(type)
  @registered_autons ||= []
  @registered_autons << type unless @registered_autons.include?(type)
end

.registered_autonsObject



30
31
32
# File 'lib/nestene.rb', line 30

def self.registered_autons
  (@registered_autons || []).map(&:to_s)
end