Sha256: eaa710ff2d87226bc86fc231f64336b30654cdd41856e80940e6355586fcdfc4
Contents?: true
Size: 263 Bytes
Versions: 11
Compression:
Stored size: 263 Bytes
Contents
module Delegation def delegate *methods, receiver define_method :method_missing do |method, *args, &block| if methods.include?(method) receiver[:to].send(method, *args, &block) else raise NoMethodError end end end end
Version data entries
11 entries across 11 versions & 1 rubygems