gpt4 book ai didi

ruby - RestClient.send 在哪里定义?

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

我试图了解 RestClient.send 的定义位置无济于事:-(

让我向你解释一下我的意思:

我一直在查看 iqengines.com ruby​​ api gem,他们使用 RestClient.send 调用他们的 api:

https://github.com/iqengines/ruby-iqengines/blob/master/lib/iqengines.rb

现在他们使用 RestClient gem 和这个调用来发送 http 请求:
response = RestClient.send(方法, url, 字段)

我查看了 rest_client gem https://github.com/archiloque/rest-client我不能不明白 rest-client gem 在哪里定义了 RestClient.send(...) 方法!!

任何帮助将不胜感激!!

最佳答案

send 方法是 Ruby 的一部分。看这里:http://ruby-doc.org/core-1.9.3/Object.html#method-i-send

关于ruby - RestClient.send 在哪里定义?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13726883/

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