neopoly/neo-dci — pull request #3 by splattael (2012-12-07 21:31:42+00:00)
Title: Calling a callback from context is now optional.

Contexts do not have to call a callback.
Program errors (missing callbacks) should be caught via tests.

Example for a context with an optional callback:

class MatchContext < Context
def initialize(match_uid)
@match = Match.find(match_uid)
end

def call
if @match
callback.call :match, match
end
end
end

/cc @jnbt @techfolio