1 module RespondsToGenerics 2 def method_missing( selector, *args) 3 method = Enumerable.instance_method( selector) || 4 Comparable.instance_method ( selector) || 5 Marshal.instance_method( selector) 6 if method 7 method.bind(self).call( args) 8 else 9 super 10 end 11 end 12 end 13 14