将路径添加到Ruby';require';
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了将路径添加到Ruby';require';相关的知识,希望对你有一定的参考价值。
Suppose you created a script chart.rb in /home/foo/ruby/mylib direcory. Now, you want to use this in the app.rb located in /home/foo/ruby/scripts. In ~/.bash_profile:
export RUBYLIB=$RUBYLIB:/home/foo/ruby/mylib
以上是关于将路径添加到Ruby';require';的主要内容,如果未能解决你的问题,请参考以下文章