module Roda::RodaPlugins::Delegate::ClassMethods
Public Instance Methods
Source
# File lib/roda/plugins/delegate.rb, line 53 def class_delegate(*meths) meths.each do |meth| define_method(meth){|*a, &block| self.class.public_send(meth, *a, &block)} end end
Delegate
the given methods to the class
Source
# File lib/roda/plugins/delegate.rb, line 60 def request_delegate(*meths) meths.each do |meth| define_method(meth){|*a, &block| @_request.public_send(meth, *a, &block)} end end
Delegate
the given methods to the request
Source
# File lib/roda/plugins/delegate.rb, line 67 def response_delegate(*meths) meths.each do |meth| define_method(meth){|*a, &block| @_response.public_send(meth, *a, &block)} end end
Delegate
the given methods to the response