class Walk::Down::Filter(T)
- Walk::Down::Filter(T)
- Reference
- Object
Included Modules
- Iterator(Path)
- Iterator::IteratorWrapper
Defined in:
walk/down/filter.crConstructors
Instance Method Summary
-
#iterator : T
Properties
-
#iterator=(iterator : T)
Properties
-
#next
Returns the next element.
- #predicate : Path -> Bool
- #predicate=(predicate : Path -> Bool)
-
#rewind
Rewinds iterator.
Macro Summary
Constructor Detail
Instance Method Detail
def next
#
Returns the next element.
Yields only entries which satisfy the given predicate and skips descending into directories that do not satisfy the given predicate.
The predicate is applied to all entries. If the predicate is true, iteration carries on as normal. If the predicate is false, the entry is ignored and if it is a directory, it is not descended into.