Class: Handlers::Delegates

Inherits:
Base
  • Object
show all
Defined in:
lib/handlers/delegates.rb

Instance Method Summary collapse

Methods inherited from Base

handle, #initialize, #raise_error, #upper

Constructor Details

This class inherits a constructor from Handlers::Base

Instance Method Details

#handleObject



5
6
7
8
9
10
11
# File 'lib/handlers/delegates.rb', line 5

def handle
  delegates = upper('@@delegators')

  (delegates || []).each do |delegate|
    Delegate.new(@klass, delegate).handle
  end
end