method
unshift
![Some documentation Importance_1](https://d2vfyqvduarcvs.cloudfront.net/images/importance_1.png?1349367920)
unshift(*args)
public
Register or
log in
to add new notes.
WedTM -
February 11, 2010 - (v1_8_6_287 - v1_8_7_72)
![Default_avatar_30](https://www.gravatar.com/avatar/cce6dedd189d53eea48e6121bb9a0383?default=http://apidock.com/images/default_avatar_30.png&size=30)
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'))