简体   繁体   English

Ruby有像JavaDoc这样的东西吗?

[英]Does Ruby have something like JavaDoc?

I am trying to learn Ruby, but I am having problems using the API. 我正在尝试学习Ruby,但我在使用API​​时遇到了问题。 For example, I am looking at this: 例如,我正在看这个:

decode(json) Converts a JSON string into a Ruby object. decode(json)将JSON字符串转换为Ruby对象。

# File lib/active_support/json/decoding.rb, line 11
11:       def decode(json)
12:         YAML.load(convert_json_to_yaml(json))
13:       rescue ArgumentError => e
14:         raise ParseError, "Invalid JSON string"
15:       end

How can I find out about how to use the returned "Ruby Object"? 如何找到如何使用返回的“Ruby对象”? Like the methods available and etc? 像可用的方法等? Thanks a ton. 万分感谢。

Yes it has: 是的它有:

http://ruby-doc.org/ http://ruby-doc.org/

Look for example: 寻找例子:

http://ruby-doc.org/core-1.9.3/ http://ruby-doc.org/core-1.9.3/

There you could search api by name of method or name of the class. 在那里你可以通过方法名称或类名来搜索api。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Backbone.js是否有来自Ruby on Rails的“耙路”之类的东西? - Does Backbone.js have something like 'rake routes' from Ruby on Rails? PHP有没有喜欢ruby gem bundler? - Does PHP have like ruby gem bundler? Puma有像Apache的“Location”标签吗? - Does Puma have something like Apache's “Location” tag? ruby on rails是否具有django之类的管理部分生成功能? - does ruby on rails have an Admin section generation feature like django? Ruby On Rails是否对内存(如Java)有任何限制 - Does Ruby On Rails have any restrictions with memory like Java 在Ruby on Rails中,如果map.something将创建something_path和something_url,则route.rb是否会在map.connect中创建类似的内容? - In Ruby on Rails, routes.rb, if map.something will create something_path and something_url, does map.connect create something like that too? 在红宝石上有像分钟一样的方法吗 - Is there something like a minute Method in ruby on rails 有点像共享点,但内置在红宝石上? - Something like sharepoint but built in ruby on rails? ruby Mustache.render 没有像 JS Mustache.render 这样的部分的第三个参数 - ruby Mustache.render does not have 3rd parameter for partials like JS Mustache.render 我如何用红宝石数组做这样的事情 - How can I do something like this with ruby arrays
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM