From cd86f9d647525824c89552641228ca22b85c7a39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 28 Apr 2011 00:15:30 +0200 Subject: ffi.rb nicely handle (.*)\? functions --- lib/efl/ffi.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/efl/ffi.rb b/lib/efl/ffi.rb index 0325848..9687d99 100644 --- a/lib/efl/ffi.rb +++ b/lib/efl/ffi.rb @@ -53,6 +53,9 @@ module Efl if m =~/^(.*)=$/ m_s = $1+'_set' args_s = '*args[0]' + elsif m =~/^(.*)\?$/ + m_s = $1+'_get' + args_s = '*args' else m_s = m.to_s args_s = '*args' -- cgit v1.1-2-g2b99