Class: Gio::FileEnumerator
Instance Method Summary collapse
- #each(cancellable = nil) ⇒ Object
-
#each_async(num_files, io_priority = GLib::PRIORITY_DEFAULT, cancellable = nil, &block) ⇒ Object
TODO: Return Enumerator unless block_given?.
Instance Method Details
#each(cancellable = nil) ⇒ Object
83 84 85 86 87 88 89 90 |
# File 'lib/gio2.rb', line 83 def each(cancellable = nil) return self.enum_for unless block_given? while file = next_file(cancellable) yield file end close self end |
#each_async(num_files, io_priority = GLib::PRIORITY_DEFAULT, cancellable = nil, &block) ⇒ Object
TODO: Return Enumerator unless block_given?
93 94 95 |
# File 'lib/gio2.rb', line 93 def each_async(num_files, io_priority = GLib::PRIORITY_DEFAULT, cancellable = nil, &block) each_async_loop num_files, io_priority, cancellable, block end |