Module: Participle::Events Private

Included in:
Bot
Defined in:
lib/events.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

A nice little frontend for handling event bindings.

Instance Method Summary collapse

Instance Method Details

#bind_event(m, method = nil, &blk) ⇒ Object

See Also:



6
7
8
# File 'lib/events.rb', line 6

def bind_event m, method = nil, &blk
  @eventhandler.bind(m, method, &blk)
end

#unbind_last(name) ⇒ Object

See Also:



11
12
13
# File 'lib/events.rb', line 11

def unbind_last(name)
  @eventhandler.unbind_last(name)
end