summaryrefslogtreecommitdiffstats
path: root/lib/efl/ffi/elementary.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-04-29 12:39:16 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-04-29 12:39:16 +0200
commit308c072a8e809b5694225cb7fc29535f62bd6d3e (patch)
treec7da18408e061dbd59d1453939e00851be3d163e /lib/efl/ffi/elementary.rb
parentb720587b2eb1e3e6b5fe6b6cfcca422fe3a215c8 (diff)
downloadffi-efl-308c072a8e809b5694225cb7fc29535f62bd6d3e.zip
ffi-efl-308c072a8e809b5694225cb7fc29535f62bd6d3e.tar.gz
regenerate lib/efl/ffi/*
Diffstat (limited to 'lib/efl/ffi/elementary.rb')
-rw-r--r--lib/efl/ffi/elementary.rb13
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/efl/ffi/elementary.rb b/lib/efl/ffi/elementary.rb
index 1411b87..dabc667 100644
--- a/lib/efl/ffi/elementary.rb
+++ b/lib/efl/ffi/elementary.rb
@@ -6,13 +6,15 @@ require 'efl/ffi'
module Efl
#
module Elm
+ #
+ extend Efl::FFIHelper
+ #
def self.method_missing m, *args, &block
- return Efl::FFI.send 'elm_'+m.to_s, *args, &block
+ sym = 'elm_'+m.to_s
+ raise NameError.new "#{self.name}.#{sym} (#{m})" if not self.respond_to? sym
+ self.module_eval "def self.#{m} *args, &block; r=self.#{sym}(*args); yield r if block_given?; r; end"
+ self.send sym, *args, &block
end
- end
- #
- module FFI
- #
#
ffi_lib 'libelementary-ver-pre-svn-09.so.0'
#
@@ -3211,6 +3213,7 @@ module Efl
]
#
attach_fcts fcts
+ #
end
end
#