Method: Wee::ComponentRunner#process_callbacks

Defined in:
lib/wee/core/componentrunner.rb

#process_callbacks(callback_stream) ⇒ Object

This method triggers several tree traversals to process the callbacks of the root component.

Returns nil or a Response object in case of a premature response.



47
48
49
50
51
52
53
54
55
56
# File 'lib/wee/core/componentrunner.rb', line 47

def process_callbacks(callback_stream)
  if callback_stream.all_of_type(:action).size > 1 
    raise "Not allowed to specify more than one action callback"
  end

  catch(:wee_abort_callback_processing) { 
    @callback_processing.each {|args| process_callbacks_of(callback_stream, *args) }
    nil
  }
end