class Filename
Ruby on Rails 7.2.3
Since v5.2.8.1Active Storage Filename
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.
Inherits from
Includes
Methods (defined here)
- # <=>
- # as_json
- # base
- # extension
- # extension_with_delimiter
- # extension_without_delimiter
- # sanitized
- # to_s
- self. new
- self. wrap
Methods (inherited)
From Object (17)
- # acts_like?
- # blank?
- # deep_dup
- # duplicable?
- # html_safe?
- # in?
- # instance_values
- # instance_variable_names
- # presence
- # presence_in
- # present?
- # to_param
- # to_query
- # try
- # try!
- # with
- # with_options
From ActiveSupport::NumericWithFormat (2)
- # to_formatted_s
- # to_fs