module ApiClient::Mixins::Delegation
Public Instance Methods
delegate(*methods)
click to toggle source
# File lib/api_client/mixins/delegation.rb, line 7 def delegate(*methods) hash = methods.pop to = hash[:to] methods.each do |method| class_eval <<-STR def #{method}(*args, &block) #{to}.#{method}(*args, &block) end STR end end