module Shrine::Attachment::ClassMethods
Attributes
Returns the Shrine class that this attachment class is namespaced under.
Public Instance Methods
Source
# File lib/shrine/attachment.rb 25 def [](*, **) 26 new(*, **) 27 end
Shorthand for Attachment.new.
Shrine::Attachment
Source
# File lib/shrine/attachment.rb 18 def inspect 19 "#{shrine_class.inspect}::Attachment" 20 end
Since Attachment 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.