Both bits of code process the same result which is finding .rb file
extensions within a specified relative path.

The question I have (because I have written used both) is which would
"you" use and why keeping the following in mind...

Ruby 1.9.x
Cross - OS usability (windows/linux/mac/etc.)

Dir[File.join(File.dirname(__FILE__),"..","ui","*.rb")].each {|rb_files|
load rb_files}

Dir[File.expand_path('../../ui/*.rb', __FILE__)].each {|rb_files| load
rb_files}

Thanks.
-- 
Posted via http://www.ruby-forum.com/.