Bundler::require => Gemfile中的nil是什么意思? [英] Bundler: What does :require => nil in Gemfile mean?
本文介绍了Bundler::require => Gemfile中的nil是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
nil在此gemfile条目中是什么意思?
What does the nil mean in this gemfile entry?
gem "hub", ">= 1.10.2", :require => nil
我发现这个问题和答案为假;
I found this question and answer for false;
在这种情况下,nil的行为是否与false相同?
In this context, does nil behave the same as false?
推荐答案
是, nil
和 false
在这里的行为相同:这使Bundler不需要指定的gem。
Yes, nil
and false
behave the same here: it makes Bundler not require the specified gem.
这篇关于Bundler::require => Gemfile中的nil是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文