RubyGems Navigation menu

seh 0.0.3

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:
= 複製 已複製

安裝:
=

版本列表:

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

擁有者:

作者:

  • Ryan Berckmans

SHA 256 總和檢查碼:

= 複製 已複製

總下載次數 15,915

這個版本 3,027

授權:

Ruby 版本需求:

相關連結: