1 2 3 4 5
class Symbol def to_proc proc { |obj, *args| obj.send(self, *args) } end unless method_defined?(:to_proc) end