Module: Sinatra::Delegator
- Defined in:
- lib/sinatra/base.rb
Overview
:nodoc:
Class Method Summary collapse
Class Method Details
.delegate(*methods) ⇒ Object
965 966 967 968 969 970 971 972 973 974 |
# File 'lib/sinatra/base.rb', line 965 def self.delegate(*methods) methods.each do |method_name| eval <<-RUBY, binding, '(__DELEGATE__)', 1 def #{method_name}(*args, &b) ::Sinatra::Application.#{method_name}(*args, &b) end private :#{method_name} RUBY end end |