[英]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.
万分感谢。
try this: 试试这个:
http://ruby-doc.org/ http://ruby-doc.org/
and this 还有这个
http://rubyonrails.org/documentation http://rubyonrails.org/documentation
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.