class ClutterGtk::Loader
Constants
- NAMESPACE
Public Class Methods
new(base_module, init_arguments)
click to toggle source
Calls superclass method
# File lib/clutter-gtk.rb, line 59 def initialize(base_module, init_arguments) super(base_module) @init_arguments = init_arguments end
Public Instance Methods
load()
click to toggle source
Calls superclass method
# File lib/clutter-gtk.rb, line 64 def load super(NAMESPACE) end
Private Instance Methods
initialize_post(object)
click to toggle source
Calls superclass method
# File lib/clutter-gtk.rb, line 84 def initialize_post(object) super return unless object.is_a?(GLib::Object) self.class.reference_gobject(object, :sink => true) end
post_load(repository, namespace)
click to toggle source
# File lib/clutter-gtk.rb, line 81 def post_load(repository, namespace) end
pre_load(repository, namespace)
click to toggle source
# File lib/clutter-gtk.rb, line 69 def pre_load(repository, namespace) init = repository.find(namespace, "init") arguments = [ [$0] + @init_arguments, ] error, returned_arguments = init.invoke(:arguments => arguments) @init_arguments.replace(returned_arguments[1..-1]) if error.to_i <= 0 raise InitError, "failed to initialize Clutter-GTK: #{error.name}" end end