class PmdTester::ResourceLocator
This class is responsible for locating the static resources of PmdTester
.
Public Class Methods
locate(resource_path)
click to toggle source
# File lib/pmdtester/resource_locator.rb, line 6 def self.locate(resource_path) File.expand_path(File.dirname(__FILE__) + "/../../#{resource_path}") end
resource(resource_path)
click to toggle source
# File lib/pmdtester/resource_locator.rb, line 10 def self.resource(resource_path) locate("resources/#{resource_path}") end