Class: GObjectIntrospection::Repository
- Inherits:
-
Object
- Object
- GObjectIntrospection::Repository
- Includes:
- Enumerable
- Defined in:
- lib/gobject-introspection/repository.rb
Instance Method Summary collapse
Instance Method Details
#each(*namespaces) ⇒ Object
21 22 23 24 25 26 27 28 29 30 |
# File 'lib/gobject-introspection/repository.rb', line 21 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 |