instance method
filter_by
Ruby on Rails 5.2.8.1
Since v3.0.20 PrivateSignature
filter_by(&block)
No documentation comment.
Parameters
-
blockblock
Source
# File railties/lib/rails/paths.rb, line 102
def filter_by(&block)
all_paths.find_all(&block).flat_map { |path|
paths = path.existent
paths - path.children.flat_map { |p| yield(p) ? [] : p.existent }
}.uniq
end
Defined in railties/lib/rails/paths.rb line 102
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Paths::Root