diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-04-21 14:57:25 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-04-21 14:57:25 +0200 |
commit | a0ebdf466949c9e60a68f9ebbd7ab373018c07d6 (patch) | |
tree | 997b707bd3779ea669ee2147acc47ef60e7ea623 /lib/efl/ffi.rb | |
parent | 5b1ec744cc7251d1f6d9478b705550cd1be2f002 (diff) | |
download | ffi-efl-a0ebdf466949c9e60a68f9ebbd7ab373018c07d6.zip ffi-efl-a0ebdf466949c9e60a68f9ebbd7ab373018c07d6.tar.gz |
use inherited to give subclassess access to @func_prefixes, ElmWin uses Efl::Helper
Diffstat (limited to 'lib/efl/ffi.rb')
-rw-r--r-- | lib/efl/ffi.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/efl/ffi.rb b/lib/efl/ffi.rb index 38bf16b..9425fd3 100644 --- a/lib/efl/ffi.rb +++ b/lib/efl/ffi.rb @@ -41,6 +41,7 @@ module Efl def self.included m m.class_eval "def ptr; @ptr; end" m.class_eval "def self.func_prefixes; @func_prefixes; end" + m.class_eval "def self.inherited sub; sub.class_eval 'def self.func_prefixes; superclass.func_prefixes; end'; end" end def method_missing m, *args, &block self.class.func_prefixes.each do |p| |