Created
March 17, 2009 06:59
-
-
Save deepthawtz/80368 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ==== 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