module Lab42::Forwarder3

Constants

VERSION

Public Class Methods

extended(by) click to toggle source
# File lib/lab42/forwarder3.rb, line 5
def self.extended by
  by.extend Forwardable
end

Public Instance Methods

forward(mthd_name, to:, as: nil) click to toggle source
# File lib/lab42/forwarder3.rb, line 10
def forward(mthd_name, to:, as: nil)
  as ||= mthd_name
  Implementation.define_forwarder(mthd_name, to: to, as: as, receiver: self)
end
forward_all(*mthd_names, to:) click to toggle source
# File lib/lab42/forwarder3.rb, line 15
def forward_all(*mthd_names, to:)
  mthd_names.each do |mthd_name|
    forward mthd_name, to: to
  end
end