Attributes
shrine_class | [RW] |
Returns the |
Public Instance methods
[](*args, **options)
Shorthand for Attachment.new
.
[show source]
# File lib/shrine/attachment.rb 25 def [](*args, **options) 26 new(*args, **options) 27 end
inspect()
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.
[show source]
# File lib/shrine/attachment.rb 18 def inspect 19 "#{shrine_class.inspect}::Attachment" 20 end