Class: Weechat::Hooks::Config

Inherits:
Weechat::Hook show all
Defined in:
lib/weechat/hooks/config.rb

Instance Attribute Summary

Attributes inherited from Weechat::Hook

#callback, #id

Attributes included from Pointer

#ptr

Instance Method Summary collapse

Methods inherited from Weechat::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(option, &callback) ⇒ Config



4
5
6
7
8
# File 'lib/weechat/hooks/config.rb', line 4

def initialize(option, &callback)
  super
  @callback = EvaluatedCallback.new(callback)
  @ptr      = Weechat.hook_config(option, "config_callback", id.to_s)
end