Sha256: 3d909038cbf3c93b7e2c3fb32661ced811641074cffdde106c2de9da7c255ab1
Contents?: true
Size: 594 Bytes
Versions: 1
Compression:
Stored size: 594 Bytes
Contents
require 'amun/event_manager' require 'forwardable' module Amun # an object wrapping event manager inside it # and exposing every method to the public # this way you can have this object and switch # behavior and states by switching internal event manager # instances, for example you can have a mode that switch between # normal and insert mode (ahem ahmed VIM style) class Object extend Forwardable attr_accessor :events def_delegators :events, :bind, :bind_all, :unbind, :unbind_all, :trigger def initialize @events = EventManager.new end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
amun-0.2.0 | lib/amun/object.rb |