Module: Efl::Eina

Defined in:
lib/efl/eina.rb,
lib/efl/native/eina.rb,
lib/efl/native/eina_types.rb

Class Method Summary collapse

Class Method Details

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



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

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

.versionObject



10
11
12
# File 'lib/efl/eina.rb', line 10

def self.version
    Native::VersionStruct.new(Native.eina_version)
end