新手问题 关于符号~>

hyanwang · 2012年11月08日 · 最后由 miclle 回复于 2012年11月09日 · 2555 次阅读

~> 不知道这个符号代表什么意思,有谁知道吗?

貌是是>=的意思

“Boxed” version operator. Version must be greater than or equal to the specified version and less than the specified version after having its minor version number increased by 1. This is to avoid API incompatibilities between minor version releases.

#3 楼 @halfelf 有没有连接?rubydoc 的搜索貌似有问题

这段英文是什么意思,能给举个例子么?

http://gembundler.com/gemfile.html Most of the version specifiers, like >= 1.0, are self-explanatory. The specifier ~> has a special meaning, best shown by example. ~> 2.0.3 is identical to >= 2.0.3 and < 2.1. ~> 2.1 is identical to >= 2.1 and < 3.0. ~> 2.2.beta will match prerelease versions like 2.2.beta.12.

我之前问过,所以知道这个问题。

#6 楼 @xds2000 谢谢~ 这里搜索东西老是搜索不出结果,一片空白,估计 google 被墙的缘故

SPERM OPERATOR !

不懂的话可是会射你一脸哦。

需要 登录 后方可回复, 如果你还没有账号请 注册新账号