From: Intransition Date: 2010-06-05T13:42:40+09:00 Subject: Re: method_defined? does what exactly? On Jun 4, 9:42 am, Robert Dober wrote: > > Of course I've said this the last time this came up too, but you know, > > who cares. Array#repeated_permutation is much more important. > > I agree with you and I would like to add that #method returns all > kind of methods and there is no method #private_method. > Would be too nice to have > #method(s), #private_method(s), #public_method(s) and #protected_method(s) > shrug. > > Consistency does not seem to be important to most, I have made this > experience before, and that has to be accepted :( Oh, and one more thing. a.product(a) == a.repeated_permutation(2).to_a a.product(a,a) == a.repeated_permutation(3).to_a a.product(a,a,a) == a.repeated_permutation(4).to_a ...