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: 51,725 of 188,317
Downloads: 21,306

Daily

Ranking: 52,707 of 188,299
Downloads: 4

Depended by

RankDownloadsName
44,11626,469block-chainable
66,05615,256drewolson-diggr
68,71814,398diggr
81,71011,106simonmenke-hosts
87,5589,899defmacro
95,8358,584rramsden-diggr
108,6806,834dfg59-diggr
129,9984,810tending
145,6733,947drewolson-defmacro
146,6233,901drewolson-block-chainable
146,8893,888dfg59-defmacro
147,5243,861dfg59-tending

Depends on

RankDownloadsName
2,3109,055,715hoe

Owners

#GravatarHandle
1icondrewolson