class Shrine::Storage::Linter

Checks if the storage conforms to Shrine’s specification.

Shrine::Storage::Linter.new(storage).call

If the check fails, by default it raises a Shrine::LintError, but you can also specify action: :warn:

Shrine::Storage::Linter.new(storage, action: :warn).call

You can also specify an IO factory which the storage will use:

Shrine::Storage::Linter.new(storage).call(->{File.open(“test/fixtures/image.jpg”)})