class ClutterGst::Loader

Public Class Methods

new(base_module, init_arguments) click to toggle source
Calls superclass method
# File lib/clutter-gst.rb, line 57
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-gst.rb, line 62
def load
  super("ClutterGst")
end

Private Instance Methods

post_load(repository, namespace) click to toggle source
# File lib/clutter-gst.rb, line 79
def post_load(repository, namespace)
  require "clutter-gst/version"
end
pre_load(repository, namespace) click to toggle source
# File lib/clutter-gst.rb, line 67
def pre_load(repository, namespace)
  init = repository.find(namespace, "init")
  arguments = [
    [$0] + @init_arguments,
  ]
  error, returned_arguments = init.invoke(arguments)
  @init_arguments.replace(returned_arguments[1..-1])
  if error.to_i <= 0
    raise InitError, "failed to initialize Clutter-GStreamer: #{error.name}"
  end
end