Method: Waves::Configurations::Default.handler

Defined in:
lib/runtime/configuration.rb

.handler(*args) ⇒ Object

Set the Rack handler, along with any specific options that need to be passed to the handler’s #run method.

When accessing the value (calling with no arguments), returns an array of the handler and options.



153
154
155
156
157
158
159
# File 'lib/runtime/configuration.rb', line 153

def self.handler(*args)
  if args.length > 0
    @rack_handler, @rack_handler_options = args
  else
    [ @rack_handler, @rack_handler_options ]
  end
end