Class: Nezu::Root

Inherits:
String
  • Object
show all
Defined in:
lib/nezu.rb

Constant Summary collapse

APP_PATH =
self.new(File.expand_path(Dir.pwd))
GEM_PATH =
self.new(File.expand_path(File.join(File.dirname(__FILE__), '..')))

Instance Method Summary collapse

Instance Method Details

#join(*params) ⇒ Object

you can do Nezu.root.join(‘path’, ‘to’, ‘your’, ‘stuff’) and get the absolute path of your stuff



39
40
41
# File 'lib/nezu.rb', line 39

def join(*params)
  File.join(self, params)
end