method
wrap
v5.2.3 -
Show latest stable
- Class:
ActiveStorage::Filename
wrap(filename)public
Returns a Filename instance based on the given filename. If the filename is a Filename, it is returned unmodified. If it is a String, it is passed to ActiveStorage::Filename.new.