gpt4 book ai didi

ruby - 在 Ruby 1.9 中使用 andand 时避免 object_id 警告?

转载 作者:数据小太阳 更新时间:2023-10-29 07:31:21 25 4
gpt4 key购买 nike

当我在 Ruby 1.9 中加载 andand 时收到警告

andand.rb:111: warning: undefining 'object_id' may cause serious problem

除了修改 and 和不删除 object_id 之外,有谁知道避免此警告的方法吗?

谢谢!

最佳答案

你很幸运 - 它刚刚用 a fix for this issue 打了补丁.

不幸的是,截至 2011 年 3 月,gem 还没有发布这个补丁。但是,有一个 fork 的唯一目的是获得该补丁:ryansch-andand

好消息!版本 v1.3.3 已于 2012 年 3 月 28 日推送到 RubyGems,并包含此修复。

关于ruby - 在 Ruby 1.9 中使用 andand 时避免 object_id 警告?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1322333/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com