summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-05-10 06:59:06 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-05-10 06:59:06 +0200
commite866b254a291156f29094bd49528a5be185fa643 (patch)
tree8a8db90a37a599b03db9c3b357a17716446bd1e0
parent0aeeee85df8a6f8c96c20cc76ee6c62f538b3275 (diff)
downloadffi-efl-e866b254a291156f29094bd49528a5be185fa643.zip
ffi-efl-e866b254a291156f29094bd49528a5be185fa643.tar.gz
add ClassHelper#null?
-rw-r--r--lib/efl/ffi.rb1
1 files changed, 1 insertions, 0 deletions
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