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