Class: Weechat::Modifiers::Print

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

Defined Under Namespace

Classes: PrintModifierCallback

Instance Attribute Summary

Attributes inherited from Weechat::Modifier

#modifier

Attributes inherited from Hook

#callback, #id

Attributes included from Pointer

#ptr

Instance Method Summary collapse

Methods inherited from Weechat::Modifier

call, #exec, inherited

Methods inherited from Hook

#call, compute_free_id, find_by_id, #hooked?, hooks, inherited, init, register, #unhook, unhook, unhook_all, unregister

Methods included from Pointer

#==, #hash, #inspect, #to_s

Constructor Details

#initialize(&callback) ⇒ Print

PrintModifierCallback



39
40
41
42
# File 'lib/weechat/modifier.rb', line 39

def initialize(&callback)
  super("weechat_print", &callback)
  @callback = PrintModifierCallback.new(callback)
end