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 126
def after_delete(*)
end
after_process (*)
[show source]
# File lib/shrine/plugins/hooks.rb, line 88
def after_process(*)
end
after_store (*)
[show source]
# File lib/shrine/plugins/hooks.rb, line 107
def after_store(*)
end
after_upload (*)
[show source]
# File lib/shrine/plugins/hooks.rb, line 68
def after_upload(*)
end
around_delete (*args)
[show source]
# File lib/shrine/plugins/hooks.rb, line 119
def around_delete(*args)
  yield
end
around_process (*args)
[show source]
# File lib/shrine/plugins/hooks.rb, line 81
def around_process(*args)
  yield
end
around_store (*args)
[show source]
# File lib/shrine/plugins/hooks.rb, line 100
def around_store(*args)
  yield
end
around_upload (*args)
[show source]
# File lib/shrine/plugins/hooks.rb, line 61
def around_upload(*args)
  yield
end
before_delete (*)
[show source]
# File lib/shrine/plugins/hooks.rb, line 123
def before_delete(*)
end
before_process (*)
[show source]
# File lib/shrine/plugins/hooks.rb, line 85
def before_process(*)
end
before_store (*)
[show source]
# File lib/shrine/plugins/hooks.rb, line 104
def before_store(*)
end
before_upload (*)
[show source]
# File lib/shrine/plugins/hooks.rb, line 65
def before_upload(*)
end
delete (io, context = {})
[show source]
# File lib/shrine/plugins/hooks.rb, line 111
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 92
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 53
def upload(io, context = {})
  result = nil
  before_upload(io, context)
  around_upload(io, context) { result = super }
  after_upload(io, context)
  result
end