class GithubMarkdownServer::Resources

Public Class Methods

expand_path(resource_path) click to toggle source

Transforms a resource_path in data/ into an absolute path

# 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