Method: Hwloc::Obj#each_descendant
- Defined in:
-
lib/hwloc/Obj.rb,
lib/hwloc/Obj.rb
468 469 470 471 472 473 474 475 476 |
# File 'lib/hwloc/Obj.rb', line 468 def each_descendant(&block) if block then children.each { |c| c.each_obj(&block) } else to_enum(:each_descendant) end end |