lib/arborist/manager.rb in arborist-0.0.1.pre20161005182540 vs lib/arborist/manager.rb in arborist-0.1.0
- old
+ new
@@ -637,12 +637,10 @@
### Yield each node that is not down to the specified +block+, or return
### an Enumerator if no block is given.
def reachable_nodes( &block )
- iter = self.enumerator_for( self.root ) do |node|
- !(node.down? || node.disabled? || node.quieted?)
- end
+ iter = self.enumerator_for( self.root ) {|node| node.reachable? }
return iter.each( &block ) if block
return iter
end