Module: Efl::EinaHash

Defined in:
lib/efl/eina_hash.rb,
lib/efl/native/eina_hash.rb

Defined Under Namespace

Classes: REinaHash

Class Method Summary (collapse)

Class Method Details

+ (Object) method_missing(m, *args, &block)



10
11
12
13
14
15
# File 'lib/efl/native/eina_hash.rb', line 10

def self.method_missing m, *args, &block
    sym = 'eina_hash_'+m.to_s
    raise NameError.new "#{self.name}.#{sym} (#{m})" if not Efl::Native.respond_to? sym
    self.module_eval "def self.#{m} *args, █ r=Efl::Native.#{sym}(*args); yield r if block_given?; r; end"
    self.send m, *args, &block
end