查看网站首页
查看网站首页
查看 sitemap.xml
✏️ 正在编辑: impl.rb
路径:
/opt/alt/ruby30/share/ruby/forwardable/impl.rb
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
# :stopdoc: module Forwardable def self._valid_method?(method) iseq = RubyVM::InstructionSequence.compile("().#{method}", nil, nil, 0, false) rescue SyntaxError false else iseq.to_a.dig(-1, 1, 1, :mid) == method.to_sym end def self._compile_method(src, file, line) RubyVM::InstructionSequence.compile(src, file, file, line, trace_instruction: false) .eval end end
💾 保存文件
← 返回文件管理器