RubyGems Navigation menu

seh 0.0.2

Pure ruby event handling similar to w3c dom events. Lots of bells and whistles to support complex event handling as required by stuff like video games. + event handling in a synchronous specific order + event targets can have multiple parents and common ancestors; event propagation does a breadth first search traversal over a directed acyclic event target graph + staged callbacks: event.before { .. }; event.after { .. } + staged callbacks allow for an ancestor to influence affect of event on a descendant: ancestor.before { |event| event.x = 5 }; descendant.after { |event| puts event.x } + events can have multiple types, and types can inherit from other types + bind callbacks using event type filtering: node.bind(overcast AND (rain OR snow)) { |event| callback! } + optional event failure: event.success { yay! }; event.failure { oops! } + events on stack don't care about other events above/below - event A, currently executing, can create/dispatch/finish another event B

Gemfile:
= Copy to clipboard Copied!

install:
=

Versions:

  1. 0.3.0 - January 07, 2013 (15.5 KB)
  2. 0.1.0 - June 19, 2011 (7 KB)
  3. 0.0.3 - June 17, 2011 (6.5 KB)
  4. 0.0.2 - June 16, 2011 (6 KB)
  5. 0.0.1 - June 15, 2011 (5.5 KB)

Owners:

Authors:

  • Ryan Berckmans

SHA 256 checksum:

= Copy to clipboard Copied!

Total downloads 15,915

For this version 3,040

Licenses:

N/A

Required Ruby Version: None

Links: