Method: Treat::Autoload.get_module_path

Defined in:
lib/treat/autoload.rb

.get_module_path(name) ⇒ Object

Returns the path to a module’s dir.



26
27
28
29
30
# File 'lib/treat/autoload.rb', line 26

def self.get_module_path(name)
  file = File.expand_path(__FILE__)
  dirs = File.dirname(file).split('/')
  File.join(*dirs[0..-1], name)
end