module Dockly::Util::Delegate

Public Instance Methods

delegate(*syms, options) click to toggle source
# File lib/dockly/util/delegate.rb, line 2
def delegate(*syms, options)
  target = options[:to]
  syms.each { |sym| define_method(sym) { |*args, &block| send(target).send(sym, *args, &block) } }
end