新手问题 Ruby 2.4.0 报警告,Fixnum 跟 Bignum 怎么关闭警告?

destinyjingkun · 2017年02月06日 · 最后由 cristinaoh 回复于 2017年02月07日 · 3185 次阅读

RT,rbenv 使用 2.4.0 会一直报

xml_mini.rb:51: warning: constant ::Fixnum is deprecated

xml_mini.rb:52: warning: constant ::Bignum is deprecated

怎么把这个 warning 解决了?

只能降回到 2.3.0?

@flowerwrong 作者说下个版本隐藏掉,现在看来只能用 2.3 了

This is a feature. Release Note 里面说到这个修改的。

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