Skip to content

Instantly share code, notes, and snippets.

@necrodome
Created June 18, 2011 21:55
Show Gist options
  • Save necrodome/1033541 to your computer and use it in GitHub Desktop.
Save necrodome/1033541 to your computer and use it in GitHub Desktop.
jruby-1.6.2 > ["urls.rb", "config/urls.rb", "mailers/*.rb", "mailers.rb"].map { |file| Dir[File.join("/Users/moon/Tmp/test_app", file)] }.flatten
=> ["/Users/moon/Tmp/test_app/urls.rb"]
jruby-1.6.2 > require 'torquebox-vfs'
=> true
jruby-1.6.2 > ["urls.rb", "config/urls.rb", "mailers/*.rb", "mailers.rb"].map { |file| Dir[File.join("/Users/moon/Tmp/test_app", file)] }.flatten
=> ["/Users/moon/Tmp/test_app/urls.rb", "/Users/moon/Tmp/test_app/config/urls.rb", "/Users/moon/Tmp/test_app/mailers.rb"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment