Skip to content

Instantly share code, notes, and snippets.

@deepthawtz
Created March 17, 2009 06:59
Show Gist options
  • Select an option

  • Save deepthawtz/80368 to your computer and use it in GitHub Desktop.

Select an option

Save deepthawtz/80368 to your computer and use it in GitHub Desktop.
# ==== Parameters
# type<Symbol>:: The type of path to retrieve directory for, e.g. :view.
#
# ==== Returns
# String:: The directory for the requested type.
#
# :api: public
def dir_for(type)
Merb.load_paths[type].first
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment