Module: Need

Included in:
Object
Defined in:
lib/need.rb

Constant Summary collapse

VERSION =
'1.0.3'

Instance Method Summary collapse

Instance Method Details

#need(&block) ⇒ Object

need takes a block which should contain a string of the relative path to the file you wish to need.



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

def need(&block)
  require File.expand_path(File.join(File.dirname(eval("__FILE__",block)),block.call))
end