class GdkX11::Loader
Public Instance Methods
load()
click to toggle source
Calls superclass method
# File lib/gdk3/x11-loader.rb, line 19 def load begin self.version = "3.0" super("GdkX11") rescue GObjectIntrospection::RepositoryError::TypelibNotFound # Ignore. Some environments such as Windows don't have it. end end
Private Instance Methods
post_load(repository, namespace)
click to toggle source
# File lib/gdk3/x11-loader.rb, line 29 def post_load(repository, namespace) @base_module.constants.each do |constant| case constant when :INVOKERS, :Loader next else value = @base_module.const_get(constant) Gdk.const_set(constant, value) end end end