Method: Orator::CLI.add_orator

Defined in:
lib/orator/cli.rb

.add_orator(klass = nil, &block) ⇒ Array<Class>

Add a orator to be used by the server.

Parameters:

  • klass (Class) (defaults to: nil)

    the class to use as aorator.

Returns:

  • (Array<Class>)

    a list of orators that will be used for the server.



108
109
110
# File 'lib/orator/cli.rb', line 108

def self.add_orator(klass = nil, &block)
  orators << (klass || block)
end