module Shrine::UploadedFile::ClassMethods

  1. lib/shrine/uploaded_file.rb


Public Instance

  1. inspect
  2. shrine_class


shrine_class [RW]

Returns the Shrine class that this file class is namespaced under.

Public Instance methods


Since UploadedFile is anonymously subclassed when Shrine is subclassed, and then assigned to a constant of the Shrine subclass, make inspect reflect the likely name for the class.

[show source]
   # File lib/shrine/uploaded_file.rb
19 def inspect
20   "#{shrine_class.inspect}::UploadedFile"
21 end