summaryrefslogtreecommitdiffstats
path: root/lib/efl/ffi.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-05-03 21:21:58 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-05-03 21:21:58 +0200
commit38539b2515507e78415a0b40f496c74bb11b9d79 (patch)
treeaa6499a5c912da6abc7f8658b9751c7ed8a5975d /lib/efl/ffi.rb
parent2527c06659f34daa5604f78f34f0a24e7efd7f39 (diff)
downloadffi-efl-38539b2515507e78415a0b40f496c74bb11b9d79.zip
ffi-efl-38539b2515507e78415a0b40f496c74bb11b9d79.tar.gz
be 1.8 compatible
Diffstat (limited to 'lib/efl/ffi.rb')
-rw-r--r--lib/efl/ffi.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/efl/ffi.rb b/lib/efl/ffi.rb
index 281d7dd..1512147 100644
--- a/lib/efl/ffi.rb
+++ b/lib/efl/ffi.rb
@@ -85,14 +85,14 @@ module Efl
EOF
end
def method_missing m, *args, &block
- if m =~/^(.*)=$/
+ m_s = m.to_s
+ if m_s =~/^(.*)=$/
m_s = $1+'_set'
args_s = '*args[0]'
- elsif m =~/^(.*)\?$/
+ elsif m_s =~/^(.*)\?$/
m_s = $1+'_get'
args_s = '*args'
else
- m_s = m.to_s
args_s = '*args'
end
self.class.proxy_list.each do |mod,p|