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

Inherits:
Callback
  • Object
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

- (Object) call(plugin, buffer, tags, line)



58
59
60
61
62
63
64
65
66
# File 'lib/weechat/modifier.rb', line 58

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