Module: Weechat::Pointer::ClassMethods

Defined in:
lib/weechat/pointer.rb

Instance Method Summary collapse

Instance Method Details

#from_ptr(ptr) ⇒ Object



7
8
9
10
11
# File 'lib/weechat/pointer.rb', line 7

def from_ptr(ptr)
  o = allocate
  o.instance_variable_set(:@ptr, ptr)
  o
end