您的位置:首页 > 编程语言 > Qt开发

Windows下静态编译QT程序

2009-10-19 09:27 393 查看
$LOAD_PATH in ruby.

$LOAD_PATH in ruby is similar to class_path in java.

class_path contains many jar position.
every jar has its own structure leading to a java File.

$LOAD_PATH contains many ruby lib position.
usually, in lib directory, a directory containing different ruby Files can be found.
for example:
../lib/spec/
../lib/spec.rb

$LOAD_PATH can be set up like : $LOAD_PATH << ..../lib
and then we can require what we need like : require "spec",
this way, the spec.rb file is required.
we don't need to specify the entire path in require command.

how does it work in rails?

in rails, the gem libary is included in enviroment.rb usually.
rspec plugin is include in spec.rake, because rspec is runned always by rake.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐