instance method
exclude_from
Ruby on Rails 5.1.7
Since v5.0.7.2 Last seen in v5.2.8.1 Private — implementation detail, not part of the public APISignature
exclude_from(source, excludes)
Exclude entries from source directory
Parameters
-
sourcereq -
excludesreq
Source
# File activesupport/lib/active_support/cache/file_store.rb, line 190
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 190
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::FileStore