------art_91646_20141983.1219601401173
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

>
>
> It would be nice if we could simply say:
>
>  instance_methods(FooAncestor)



You could monkey-patch, if you're into that sort of thing. This maintains
the existing method signature while adding your desired behaviour:

class Module
  method  nstance_method :instance_methods
  define_method :instance_methods do |condition  rue|
    return method.bind(self).call(condition) unless Module  condition
    anc  ncestors
    index  nc.index(condition) || -1
    anc[0..index].inject([]) { |methods, ancestor|
      methods.concat(ancestor.instance_methods(false))
    }.uniq
  end
end

------art_91646_20141983.1219601401173--