查看网站首页
查看网站首页
查看 sitemap.xml
✏️ 正在编辑: cdesc-LocalJumpError.yaml
路径:
/opt/alt/ruby18/share/ri/1.8/system/LocalJumpError/cdesc-LocalJumpError.yaml
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
--- !ruby/object:RI::ClassDescription attributes: [] class_methods: [] comment: - !ruby/struct:SM::Flow::P body: <tt>Proc</tt> objects are blocks of code that have been bound to a set of local variables. Once bound, the code may be called in different contexts and still access those variables. - !ruby/struct:SM::Flow::VERB body: " def gen_times(factor)\n return Proc.new {|n| n*factor }\n end\n\n times3 = gen_times(3)\n times5 = gen_times(5)\n\n times3.call(12) #=> 36\n times5.call(5) #=> 25\n times3.call(times5.call(4)) #=> 60\n" constants: [] full_name: LocalJumpError includes: [] instance_methods: - !ruby/object:RI::MethodSummary name: exit_value - !ruby/object:RI::MethodSummary name: reason name: LocalJumpError superclass: StandardError
💾 保存文件
← 返回文件管理器