Method: Waylon::SenseRegistry.register

Defined in:
lib/waylon/sense_registry.rb

.register(name, class_name) ⇒ Class

A convenience wrapper around the singleton instance #register method

Parameters:

  • name (String)

    The name of the Sense in the registry

  • class_name (Class)

    The Sense subclass to add

Returns:

  • (Class)

    The Sense subclass



13
14
15
# File 'lib/waylon/sense_registry.rb', line 13

def self.register(name, class_name)
  instance.register(name, class_name)
end