Method: OpenWeatherClient.project_root
- Defined in:
- lib/open_weather_client.rb
.project_root ⇒ Object
Get the project root
59 60 61 62 63 64 |
# File 'lib/open_weather_client.rb', line 59 def self.project_root return Rails.root if defined?(Rails) return Bundler.root if defined?(Bundler) Dir.pwd end |