查看网站首页
查看网站首页
查看 sitemap.xml
✏️ 正在编辑: dump-c.yaml
路径:
/opt/alt/ruby18/share/ri/1.8/system/YAML/dump-c.yaml
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Converts <em>obj</em> to YAML and writes the YAML result to <em>io</em>. - !ruby/struct:SM::Flow::VERB body: " File.open( 'animals.yaml', 'w' ) do |out|\n YAML.dump( ['badger', 'elephant', 'tiger'], out )\n end\n" - !ruby/struct:SM::Flow::P body: If no <em>io</em> is provided, a string containing the dumped YAML is returned. - !ruby/struct:SM::Flow::VERB body: " YAML.dump( :locked )\n #=> "--- :locked"\n" full_name: YAML::dump is_singleton: true name: dump params: ( obj, io = nil ) visibility: public
💾 保存文件
← 返回文件管理器