Class: Amun::Object
- Inherits:
-
Object
- Object
- Amun::Object
- Extended by:
- Forwardable
- Defined in:
- lib/amun/object.rb
Overview
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)
Direct Known Subclasses
Buffer, MajorModes::Fundamental, MajorModes::IRB, Windows::Base
Instance Attribute Summary collapse
-
#events ⇒ Object
Returns the value of attribute events.
Instance Method Summary collapse
-
#initialize ⇒ Object
constructor
A new instance of Object.
Constructor Details
#initialize ⇒ Object
Returns a new instance of Object.
17 18 19 |
# File 'lib/amun/object.rb', line 17 def initialize @events = EventManager.new end |
Instance Attribute Details
#events ⇒ Object
Returns the value of attribute events.
14 15 16 |
# File 'lib/amun/object.rb', line 14 def events @events end |