From: Kenny Date: 2008-10-26T08:19:58+09:00 Subject: Re: Conditionally Including Methods From A Module? Thanks so much for the post Mike, very much appreciated and a great learning lesson for me in some lower level Ruby semantics. After my post last night, I can up with using define_method as well and produced something like the following: module ActsAsAnything def self.included(base) base.extend(ClassMethods) end module ClassMethods # acts_as_anything def acts_as_anything(opts = {}) # index define_method(:index) do puts 'Index Method' end if opts.include?(:index) end end end Since I'm including a Module that I'm the author of, I figure I can get away with this syntax and just redefine my top level Module as such. Any thoughts on this implementation? Sincerely, Kenny