Module: GObjectIntrospection::Loader::VirtualFunctionImplementable

Defined in:
lib/gobject-introspection/loader.rb

Instance Method Summary collapse

Instance Method Details

#implement_virtual_function(implementor_class, name) ⇒ Object



868
869
870
871
872
873
874
# File 'lib/gobject-introspection/loader.rb', line 868

def implement_virtual_function(implementor_class, name)
  unless instance_variable_defined?(:@virtual_function_implementor)
    return false
  end
  @virtual_function_implementor.implement(implementor_class.gtype,
                                          name)
end

#initialize_virtual_function_implementable(implementor) ⇒ Object



864
865
866
# File 'lib/gobject-introspection/loader.rb', line 864

def initialize_virtual_function_implementable(implementor)
  @virtual_function_implementor = implementor
end