Top Level Namespace

Instance Method Summary collapse

Instance Method Details

#libdir(path) ⇒ Object



1
2
3
4
# File 'lib/libdir.rb', line 1

def libdir(path)
  relative_to = caller.first.split(':').first
  $:.unshift(File.join(File.dirname(relative_to), path))
end

#vendor(path) ⇒ Object



6
7
8
9
# File 'lib/libdir.rb', line 6

def vendor(path)
  relative_to = caller.first.split(':').first
  $:.unshift(File.join(File.dirname(relative_to), path, 'lib'))
end