Module: Efl::Edje

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

Defined Under Namespace

Classes: REdje

Class Method Summary collapse

Class Method Details

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



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

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



11
12
13
# File 'lib/efl/edje.rb', line 11

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