From e866b254a291156f29094bd49528a5be185fa643 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 10 May 2011 06:59:06 +0200 Subject: add ClassHelper#null? --- lib/efl/ffi.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/efl/ffi.rb b/lib/efl/ffi.rb index 05c9cbd..e7eea39 100644 --- a/lib/efl/ffi.rb +++ b/lib/efl/ffi.rb @@ -73,6 +73,7 @@ module Efl def to_s; Object.instance_method(:to_s).bind(self).call+' ['+self.to_ptr.to_s+']' end def to_ptr; @ptr; end def === o; @ptr === o.to_ptr; end + def null?; @ptr.null?; end def address; @ptr.address; end def self.included kls # create class instance @search_prefixes -- cgit v1.1-2-g2b99