Method: App::UtilsTools.get_base_path

Defined in:
lib/core/utils_tools.rb

.get_base_pathObject

Get PATH to assets, scripts, etc.

Returns:

  • String



15
16
17
18
19
# File 'lib/core/utils_tools.rb', line 15

def self.get_base_path
    base_path = File.dirname(File.expand_path(__FILE__))
    base_path = base_path.gsub(/\/\w+\/\w+\z/i, '')
    base_path
end