I want to know more about $: but I don’t how is called.
:015 > $:
=> ["/Users/Nerian/.rvm/rubies/ruby-1.9.3-rc1/lib/ruby/site_ruby/1.9.1",
"/Users/Nerian/.rvm/rubies/ruby-1.9.3-rc1/lib/ruby/site_ruby/1.9.1/x86_64-darwin11.1.0",
"/Users/Nerian/.rvm/rubies/ruby-1.9.3-rc1/lib/ruby/site_ruby",
"/Users/Nerian/.rvm/rubies/ruby-1.9.3-rc1/lib/ruby/vendor_ruby/1.9.1",
"/Users/Nerian/.rvm/rubies/ruby-1.9.3-rc1/lib/ruby/vendor_ruby/1.9.1/x86_64-darwin11.1.0",
"/Users/Nerian/.rvm/rubies/ruby-1.9.3-rc1/lib/ruby/vendor_ruby",
"/Users/Nerian/.rvm/rubies/ruby-1.9.3-rc1/lib/ruby/1.9.1",
"/Users/Nerian/.rvm/rubies/ruby-1.9.3-rc1/lib/ruby/1.9.1/x86_64-darwin11.1.0"]
- What is the name of this?
- How and when is it used?
- Should it be used at all, is it a good practice or a bad practice?
- Is it supported by all Ruby implementations?
- Any docs about it?
$:global is$LOAD_PATH.require "mylibrary"instruction)$: << "../lib"assuming the script is in a sibling oflib).was part of $: on 1.8.x, and has been removed for security reasons on 1.9.x.