class method
self.new
Ruby on Rails 6.1.7.10
Since v5.2.8.1Signature
self.new(filename)
No documentation comment.
Parameters
-
filenamereq
Source
# File activestorage/app/models/active_storage/filename.rb, line 16
def initialize(filename)
@filename = filename
end
Defined in activestorage/app/models/active_storage/filename.rb line 16
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Filename