Class: GithubMarkdownServer::Resources
- Inherits:
-
Object
- Object
- GithubMarkdownServer::Resources
- Defined in:
- lib/github-markdown-server/resources.rb
Class Method Summary collapse
-
.expand_path(resource_path) ⇒ Object
Transforms a resource_path in data/ into an absolute path.
Class Method Details
.expand_path(resource_path) ⇒ Object
Transforms a resource_path in data/ into an absolute path
5 6 7 |
# File 'lib/github-markdown-server/resources.rb', line 5 def self.(resource_path) File.join(File.dirname(File.(__FILE__)), '..', '..', 'data', resource_path) end |