module Ivar
def self.project_root(caller_location = nil)
-
(String)
- The absolute path to the project root directory
Parameters:
-
caller_location
(String, nil
) -- Optional file path to start from (defaults to caller's location)
def self.project_root(caller_location = nil) @project_root ||= PROJECT_ROOT_FINDER.find(caller_location) end