Module: Trialday::Delegator

Included in:
Rack::Builder
Defined in:
lib/trialday/base.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.delegate(*methods) ⇒ Object



32
33
34
35
36
37
38
# File 'lib/trialday/base.rb', line 32

def self.delegate(*methods)
  methods.each do |method_name|
    define_method(method_name) do |*args, &block|
      Trialday::Application.send(method_name, *args, &block)
    end
  end
end