class Garcon::Hooker

Public Class Methods

new(options) click to toggle source
Calls superclass method
# File lib/garcon/utility/hookers.rb, line 104
def initialize(options)
  super()
  @options = options
end

Public Instance Methods

<<(callback) click to toggle source
Calls superclass method
# File lib/garcon/utility/hookers.rb, line 118
def <<(callback)
  super Uber::Options::Value.new(callback, dynamic: true)
end
run(scope, *args) click to toggle source
# File lib/garcon/utility/hookers.rb, line 109
def run(scope, *args)
  inject(Results.new) do |results, callback|
    executed = execute_callback(scope, callback, *args)

    return results.halted! unless continue_execution?(executed)
    results << executed
  end
end