module ProxyTo::ClassExtension

Public Instance Methods

proxy_to(*targets, **options) click to toggle source

@param [<String, Symbol>] targets @return [void]

# File lib/proxy_to/class_extension.rb, line 5
def proxy_to(*targets, **options)
  targets.reverse_each do |target|
    include ProxyTo::Target.new target, **options
  end
end
singleton_proxy_to(*targets, **options) click to toggle source

@param [<String, Symbol>] targets

# File lib/proxy_to/class_extension.rb, line 12
def singleton_proxy_to(*targets, **options)
  targets.reverse_each do |target|
    extend ProxyTo::Target.new target, **options
  end
end