summaryrefslogtreecommitdiffstats
path: root/lib/efl/ffi.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-05-04 06:57:10 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-05-04 06:57:10 +0200
commita4db205dfc6d4a73107e170cf7f3cef81ef760b6 (patch)
tree5902ca96eb10bd5fd45a81ae537b54e22f850aa2 /lib/efl/ffi.rb
parent1cc242e79189a17ab147e11b9e9ba59e1c3a6c76 (diff)
downloadffi-efl-a4db205dfc6d4a73107e170cf7f3cef81ef760b6.zip
ffi-efl-a4db205dfc6d4a73107e170cf7f3cef81ef760b6.tar.gz
fix ClassHelper#method_missing to respond to to_ary
Diffstat (limited to 'lib/efl/ffi.rb')
-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 1512147..5e36bab 100644
--- a/lib/efl/ffi.rb
+++ b/lib/efl/ffi.rb
@@ -105,6 +105,7 @@ module Efl
return self.send m, *args, &block
end
end
+ return [self.to_s+' ['+self.to_ptr.to_s+']'] if m_s=~/^to_ary$/
Kernel.raise NameError.new "#{self.class.name} is unable to resolve #{m} within #{self.class.proxy_list.inspect}"
end
end