Sha256: 341d1086dac14a7784e7a1072fd95f02cba8a5aee9e626b92e67d618bcbffeea
Contents?: true
Size: 306 Bytes
Versions: 55
Compression:
Stored size: 306 Bytes
Contents
# The original Class class. # class Class def instance_forward *method_names method_names.each do |method_name| module_eval(<<-FORWARDING, "(__INSTANCE_FORWARDING__)", 1) def self.#{method_name}(*args, &block)\n self.instance.#{method_name}(*args, &block)\nend\n FORWARDING end end end
Version data entries
55 entries across 55 versions & 1 rubygems