Class: Weechat::Modifiers::Print::PrintModifierCallback

Inherits:
Callback show all
Defined in:
lib/weechat/modifier.rb

Instance Method Summary collapse

Methods inherited from Callback

#initialize

Constructor Details

This class inherits a constructor from Weechat::Callback

Instance Method Details

#call(plugin, buffer, tags, line) ⇒ Object



28
29
30
31
32
33
34
35
36
# File 'lib/weechat/modifier.rb', line 28

def call(plugin, buffer, tags, line)
  begin
    ret = @callback.call(plugin, buffer, tags, line)
  rescue => e
    Weechat::Utilities.format_exception(e)
    return line
  end
  return ret
end