class

ActiveStorage::Filename

v5.2.3 - Show latest stable - Superclass: Object

Encapsulates a string representing a filename to provide convenient access to parts of it and sanitization. A Filename instance is returned by ActiveStorage::Blob#filename, and is comparable so it can be used for sorting.

Included modules

  • Comparable

Files

  • activestorage/app/models/active_storage/filename.rb