On 13 Sep 2008, at 17:48, Mozmonkey wrote:
> > Woops, the file was named wrong. Instead of HelloWorld.rb it needed > to be hello_world.rb. > > Class.subclass only seems to show classes that have > been instantiated, so I can't quite get a list of subclasses without > creating a new instance of all of them. > They don't need to be instantiated, just loaded. If you Dir.glob your widgets folder and require everything inside it you should be ok. Fred > So how would I loop through the files in the widgets directory and get > the class name from each of them? Furthermore, how would I execute > that class later dynamically since the class name will be held in a > variable? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

