aboutsummaryrefslogtreecommitdiffstats
path: root/golf_prelude.rb
blob: 347d316cc76cb707608835b7513899cc54f0573b (plain)
1
2
3
4
5
6
7
class Object
  def method_missing m, *a, &b
    r = /^#{m}/
    t = (methods + private_methods).sort.find{|e|r=~e}
    t ? __send__(t, *a, &b) : super
  end
end