summaryrefslogtreecommitdiffstats
path: root/lib/efl/ffi.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-04-21 14:57:25 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-04-21 14:57:25 +0200
commita0ebdf466949c9e60a68f9ebbd7ab373018c07d6 (patch)
tree997b707bd3779ea669ee2147acc47ef60e7ea623 /lib/efl/ffi.rb
parent5b1ec744cc7251d1f6d9478b705550cd1be2f002 (diff)
downloadffi-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.rb1
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|