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: 52,041 of 189,816
Downloads: 21,461

Daily

Ranking: 57,635 of 189,791
Downloads: 2

Depended by

RankDownloadsName
44,46626,609block-chainable
66,44215,349drewolson-diggr
69,17614,466diggr
82,09811,184simonmenke-hosts
88,1099,941defmacro
96,1848,654rramsden-diggr
109,2006,877dfg59-diggr
130,6234,841tending
146,3623,969drewolson-defmacro
147,2913,925drewolson-block-chainable
147,4563,917dfg59-defmacro
148,0583,890dfg59-tending

Depends on

RankDownloadsName
2,3279,145,077hoe

Owners

#GravatarHandle
1icondrewolson