Class: PmdTester::ResourceLocator
- Inherits:
-
Object
- Object
- PmdTester::ResourceLocator
- Defined in:
- lib/pmdtester/resource_locator.rb
Overview
This class is responsible for locating the static resources of PmdTester.
Class Method Summary collapse
Class Method Details
.locate(resource_path) ⇒ Object
6 7 8 |
# File 'lib/pmdtester/resource_locator.rb', line 6 def self.locate(resource_path) File.(File.dirname(__FILE__) + "/../../#{resource_path}") end |
.resource(resource_path) ⇒ Object
10 11 12 |
# File 'lib/pmdtester/resource_locator.rb', line 10 def self.resource(resource_path) locate("resources/#{resource_path}") end |