Class: Borges::Controller

# Borges::Controller (Class)

In: | lib/Borges.rb lib/Borges/Controller/Controller.rb
Parent: | Object

## Methods

active_controller all_subclasses answer application_with_path call clear_delegate confirm default_session_class delegate delegate= delegate_to inform inherited initialize_controller new on_answer register_application register_authenticated_application render_active_controller_with render_on render_with request session will_answer? will_call?

## External Aliases

new -> orig_new

## Public Class methods

all_subclasses()
application_with_path(path, klass = nil)
default_session_class()
inherited(klass)
new(*args, &block)
register_application(app_name, session_class = default_session_class)
register_authenticated_application(app_name, user, password)

## Public Instance methods

active_controller()

TODO make this a loop

answer(val = self)

Return control to caller

Called when a controller has completed, and needs to return a value.

call(controller = nil)

Pass control

Called when a controller desires to pass control to another controller.

If no controller is specified, then self is being called. If self is not going to answer, then don’t save a continuation.

Otherwise, delegate to the controller passed in, then call it.

clear_delegate()
confirm(str)
delegate()
delegate=(controller)
delegate_to(controller, &block)
inform(str)
initialize_controller()
on_answer(&block)
render_active_controller_with(context)
render_on(r)

for compatibility

render_with(context)
request(request, label = nil, initial = '')

XXX Fix InputDialog

session()
will_answer?()

Will this component ever call answer? Used to optimize calling of Controllers.

Redefine to return false if this Controller will not call answer.

will_call?()

Will this component ever call call? Used to optimize calling of Controllers.

Redefine to return false if this Controller will not call call.

[Validate]