ruby-on-rails – Ruby有类似JavaDoc的东西吗?
发布时间:2020-12-17 02:32:26 所属栏目:百科 来源:网络整理
导读:我正在尝试学习 Ruby,但我在使用API??时遇到了问题. 例如,我正在看这个: 解码(JSON) 将JSON字符串转换为Ruby对象. # File lib/active_support/json/decoding.rb,line 1111: def decode(json)12: YAML.load(convert_json_to_yaml(json))13: rescue ArgumentE
我正在尝试学习
Ruby,但我在使用API??时遇到了问题.
例如,我正在看这个: 解码(JSON) # 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 如何找到如何使用返回的“Ruby对象”?像可用的方法等?万分感谢. 解决方法
是的它有:
http://ruby-doc.org/ 寻找例子: http://ruby-doc.org/core-1.9.3/ 在那里你可以通过方法名称或类名来搜索api. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |