module Shrine::Plugins::Hooks::InstanceMethods

  1. lib/shrine/plugins/hooks.rb

Public Instance methods

after_delete (*)
[show source]
# File lib/shrine/plugins/hooks.rb, line 127
def after_delete(*)
end
after_process (*)
[show source]
# File lib/shrine/plugins/hooks.rb, line 89
def after_process(*)
end
after_store (*)
[show source]
# File lib/shrine/plugins/hooks.rb, line 108
def after_store(*)
end
after_upload (*)
[show source]
# File lib/shrine/plugins/hooks.rb, line 69
def after_upload(*)
end
around_delete (*args)
[show source]
# File lib/shrine/plugins/hooks.rb, line 120
def around_delete(*args)
  yield
end
around_process (*args)
[show source]
# File lib/shrine/plugins/hooks.rb, line 82
def around_process(*args)
  yield
end
around_store (*args)
[show source]
# File lib/shrine/plugins/hooks.rb, line 101
def around_store(*args)
  yield
end
around_upload (*args)
[show source]
# File lib/shrine/plugins/hooks.rb, line 62
def around_upload(*args)
  yield
end
before_delete (*)
[show source]
# File lib/shrine/plugins/hooks.rb, line 124
def before_delete(*)
end
before_process (*)
[show source]
# File lib/shrine/plugins/hooks.rb, line 86
def before_process(*)
end
before_store (*)
[show source]
# File lib/shrine/plugins/hooks.rb, line 105
def before_store(*)
end
before_upload (*)
[show source]
# File lib/shrine/plugins/hooks.rb, line 66
def before_upload(*)
end
delete (io, context = {})
[show source]
# File lib/shrine/plugins/hooks.rb, line 112
def delete(io, context = {})
  result = nil
  before_delete(io, context)
  around_delete(io, context) { result = super }
  after_delete(io, context)
  result
end
store (io, context = {})
[show source]
# File lib/shrine/plugins/hooks.rb, line 93
def store(io, context = {})
  result = nil
  before_store(io, context)
  around_store(io, context) { result = super }
  after_store(io, context)
  result
end
upload (io, context = {})
[show source]
# File lib/shrine/plugins/hooks.rb, line 54
def upload(io, context = {})
  result = nil
  before_upload(io, context)
  around_upload(io, context) { result = super }
  after_upload(io, context)
  result
end