module PhilLocator
Public Class Methods
configuration()
click to toggle source
# File lib/phil_locator.rb, line 11 def self.configuration @configuration ||= PhilLocator::Configuration.new end
configure() { |configuration| ... }
click to toggle source
# File lib/phil_locator.rb, line 15 def self.configure yield configuration if block_given? end
data_root_path()
click to toggle source
# File lib/phil_locator.rb, line 19 def self.data_root_path raise "`#{name}.data_root_path` MUST be a String object." unless configuration.data_root_path.is_a?(String) configuration.data_root_path end
gem_full_path()
click to toggle source
# File lib/phil_locator.rb, line 25 def self.gem_full_path Gem.loaded_specs[gem_name].full_gem_path end
gem_name()
click to toggle source
# File lib/phil_locator.rb, line 29 def self.gem_name name.underscore end
gem_version()
click to toggle source
# File lib/phil_locator/gem_version.rb, line 2 def self.gem_version Gem::Version.new VERSION::STRING end
version()
click to toggle source
# File lib/phil_locator/version.rb, line 4 def self.version gem_version end