method

wrap

rails 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.