Categories: None [Edit]

need

https://rubygems.org/gems/need
== DESCRIPTION: Need makes ruby relative requires just work. Simply need a file with a relative path and the file will always be required correctly, regardless of what file your application is being launched through. Typically, ruby projects would unshift lib onto $PATH or use the File.dirname(__FILE__) trick. Using need means you don't have to worry about either of these. Assume you have two files, one directly in lib and the other in lib/extensions. Let's assume that file_a in lib requires file_b, in lib/extensions. Previously, you would doing some crazy load path unshifting or use the __FILE__ trick to make these requires flexible enough to work when your app is being accessed by rake, through a test suite, or required as a gem. Now, just use need. In file_a: need{"extensions/file_b"} need "extensions/file_b"

Total

Ranking: 53,326 of 198,322
Downloads: 22,521

Daily

Ranking: 46,084 of 198,297
Downloads: 2

Depended by

RankDownloadsName
46,49127,199block-chainable
68,76315,823drewolson-diggr
72,00114,784diggr
84,68711,558simonmenke-hosts
91,20210,201defmacro
99,2488,914rramsden-diggr
112,3807,111dfg59-diggr
134,8284,994tending
150,5044,122drewolson-defmacro
151,4874,076drewolson-block-chainable
151,7544,063dfg59-defmacro
152,0744,049dfg59-tending

Depends on

RankDownloadsName
2,4129,695,188hoe

Owners

#GravatarHandle
1icondrewolson