Module: Shrine::Plugins::ContentAddressable::FileMethods
- Includes:
- ContentAddressableFile::SharedInterface
- Defined in:
- lib/shrine/plugins/content_addressable/file_methods.rb
Instance Method Summary collapse
Methods included from ContentAddressableFile::SharedInterface
#==, #content_addressable, #decode, #digest, #digest_hash_function, #digest_length, #hash
Instance Method Details
#to_content_addressable! ⇒ Object
12 13 14 15 |
# File 'lib/shrine/plugins/content_addressable/file_methods.rb', line 12 def to_content_addressable! ContentAddressableFile.register_storage(storage) ContentAddressableFile.new(id) end |