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\",
Whenever I see some installation instruction for an emacs package it always suggests to use add-to-list \'load-path it never works for me. For some reason and I have to use load-file. For example, thi
Note that I am not using Rails. I have a directory structure like: foo/ bar/ base_classes/ base_classes.rb
I pack some ruby code into a gem. I want to refer the code in the gem in some other code. So in the Gemfile I specify the gem\'s name, version, and local path. Like:
What is difference between load path & auto load path? if i have added any dir 开发者_Go百科to auto-load path then should i need to require that file in my code?I assume you meant autoload_paths :
I have a python package called zypp. It is generated via swig and the rpm package (called python-zypp) puts it in:
I want to configure gem to only use system gems - never those in $HOME/.gem. This is because I\'m writing a script that will access Gem.path and I don\'t want it to return the path to gems in my home
After a recent reinstallation of Ubuntu, I reinstalled RubyGems.The Ubuntu repository grabbed version 1.3.5.Later I found I need the latest version.So I installed the RubyGems update to get to version
I am trying to run a ruby script as root. When I try to require a gem, ruby says it can\'t be found. This is because of $:
I needed to know what was in my Ruby load path, so I did this: $ ruby -e \"puts $LOAD_PATH\" It didn\'t print anything out, which I didn\'t expect.So I tried this: