Class: GObjectIntrospection::Repository

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/gobject-introspection/repository.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.defaultObject



21
22
23
# File 'lib/gobject-introspection/repository.rb', line 21

def default
  @@default ||= default_raw
end

.default_rawObject



20
# File 'lib/gobject-introspection/repository.rb', line 20

alias_method :default_raw, :default

Instance Method Details

#each(*namespaces) ⇒ Object



28
29
30
31
32
33
34
35
36
37
# File 'lib/gobject-introspection/repository.rb', line 28

def each(*namespaces)
  if namespaces.empty?
    namespaces = loaded_namespaces
  end
  namespaces.each do |namespace|
    get_n_infos(namespace).times do |i|
      yield(get_info(namespace, i))
    end
  end
end