method
unshift

unshift(...)
public
Register or
log in
to add new notes.
WedTM -
February 11, 2010 - (v1_8_6_287 - v1_8_7_72)

1 thank
Using Unshift with Load Path's
Using unshift on your load path’s for Rails, Sinatra, etc, is a good way of ensuring that the file your including is going to be first.
Example
vendor = File.join(File.dirname(__FILE__), 'vendor') $LOAD_PATH.unshift File.expand_path(File.join(vendor, 'ultraviolet-0.10.5', 'lib'))