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

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

Methods included from Pointer

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

Constructor Details

#initialize(&callback) ⇒ Print

PrintModifierCallback



69
70
71
72
# File 'lib/weechat/modifier.rb', line 69

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