instance method
exclude_from
Ruby on Rails 5.2.8.1
Since v5.2.8.1 Last seen in v5.2.8.1 PrivateSignature
exclude_from(source, excludes)
Exclude entries from source directory
Parameters
-
sourcereq -
excludesreq
Source
# File activesupport/lib/active_support/cache/file_store.rb, line 191
def exclude_from(source, excludes)
Dir.entries(source).reject { |f| excludes.include?(f) }
end
Defined in activesupport/lib/active_support/cache/file_store.rb line 191
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::FileStore