module Minimo::Delegator

Attributes

target[RW]

Public Class Methods

delegate(*methods) click to toggle source
# File lib/minimo.rb, line 109
def self.delegate(*methods)
  Array(methods).each do |method_name|
    define_method(method_name) do |*args, &block|
      Delegator.target.send(method_name, *args, &block)
    end
    private method_name
  end
end