Module: Efl::EcoreGetopt

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

Defined Under Namespace

Classes: REcoreGetopt

Class Method Summary collapse

Class Method Details

.method_missing(m, *args, &block) ⇒ Object



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

def self.method_missing m, *args, &block
    sym = 'ecore_getopt_'+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