Class: Amun::Object

Inherits:
Object
  • Object
show all
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)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

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

#eventsObject

Returns the value of attribute events.



14
15
16
# File 'lib/amun/object.rb', line 14

def events
  @events
end