module Shrine::UploadedFile::ClassMethods

  1. lib/shrine/uploaded_file.rb

Methods

Public Instance

  1. inspect
  2. shrine_class

Attributes

shrine_class [RW]

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

Public Instance methods

inspect()

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