aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/symbol.rb
blob: 18ccb31474405e96e6cefdddbfe6df34f4ce3ae1 (plain)
1
2
3
4
5
class Symbol
  def to_proc
    proc { |*args| args.shift.send(self, *args) }
  end unless method_defined?(:to_proc)
end