class Pluggaloid::Listener
Public Class Methods
cancel!()
click to toggle source
プラグインコールバックをこれ以上実行しない。
# File lib/pluggaloid/listener.rb, line 6 def self.cancel! throw :plugin_exit, false end
new(event, **kwrest, &callback)
click to toggle source
Args¶ ↑
- event
-
監視するEventのインスタンス
- name:
-
名前(String | nil)
- slug:
-
イベントリスナスラッグ(Symbol | nil)
- tags:
-
Pluggaloid::HandlerTag|Array リスナのタグ
- &callback
-
コールバック
Calls superclass method
Pluggaloid::Handler::new
# File lib/pluggaloid/listener.rb, line 15 def initialize(event, **kwrest, &callback) super @callback = callback event.add_listener(self) end
Public Instance Methods
call(*args)
click to toggle source