From: danielbuus@... Date: 2007-03-22T02:25:10+09:00 Subject: Re: Given an object, how to find public methods in included modules and the parent module? On Mar 21, 5:33 pm, ara.t.how...@noaa.gov wrote: > > can you start out by telling us __what__ you are trying to accomplish? > Yes :) I'm trying to basically "load in" a bunch of class files and detect their public methods, including those defined in included modules. Consider this file structure: apps/ controllers/ store/ items_controller.rb -> class Store::ItemsController << ApplicationController def index # blah blah end end manage/ items_controller.rb -> class Manage::ItemsController << ApplicationController include Poly::BackendCrud def show # blah blah end end lib/ poly.rb -> module Poly module BackendCrud def save # blah blah end end end Okay. Given that file tree, I want to "examine" all controllers in app/ controllers/, so that I can produce something like this: { 'store' => { 'items' => [ 'index' ] }, 'manage' => { 'items' => [ 'show', 'save' ] } } Do you know what I mean? Cheers, Daniel :) > -a > -- > be kind whenever possible... it is always possible. > - the dalai lama