instance method
text?
Ruby on Rails 7.2.3
Since v5.2.8.1Signature
text?()
Returns true if the content_type of this blob is in the text range, like text/plain.
Source
# File activestorage/app/models/active_storage/blob.rb, line 207
def text?
content_type.start_with?("text")
end
Defined in activestorage/app/models/active_storage/blob.rb line 207
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Blob