Module: Weechat::Pointer::ClassMethods

Defined in:
lib/weechat/pointer.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) from_ptr(ptr)



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