From: Albert Schlef Date: 2011-03-25T18:13:51+09:00 Subject: Re: Dynamically calling a certain set of methods Simon Kaczor wrote in post #989060: > class Mutating > ... > @mutations = instance_methods.grep(/Mutation$/) > class << self > attr_reader :mutations > end But if his actual class if derived from Mutating, your code won't work because the derived class won't see the parent's @mutations. Correct me if I'm wrong. -- Posted via http://www.ruby-forum.com/.