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,075 of 197,236
Downloads: 22,463

Daily

Ranking: 39,631 of 197,207
Downloads: 12

Depended by

RankDownloadsName
46,26527,137block-chainable
68,53415,772drewolson-diggr
71,70114,752diggr
84,35211,535simonmenke-hosts
90,97310,161defmacro
98,9768,885rramsden-diggr
112,0947,085dfg59-diggr
134,4374,978tending
150,2504,098drewolson-defmacro
151,2304,050drewolson-block-chainable
151,3494,045dfg59-defmacro
151,6844,031dfg59-tending

Depends on

RankDownloadsName
2,4089,625,777hoe

Owners

#GravatarHandle
1icondrewolson