Class: GithubMarkdownServer::Resources

Inherits:
Object
  • Object
show all
Defined in:
lib/github-markdown-server/resources.rb

Class Method Summary collapse

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.expand_path(resource_path)
  File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'data', resource_path)
end