| Server IP : 162.214.74.102 / Your IP : 216.73.216.252 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/RubyVM/InstructionSequence/ |
Upload File : |
U:RDoc::AnyMethod[iI"of:ETI"$RubyVM::InstructionSequence::of;TT:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph; [I"JReturns the instruction sequence containing the given proc or method.;To:RDoc::Markup::BlankLine o;
; [I"For example, using irb:;T@o:RDoc::Markup::Verbatim; [I"# a proc
;TI" > p = proc { num = 1 + 2 }
;TI")> RubyVM::InstructionSequence.of(p)
;TI"D> #=> <RubyVM::InstructionSequence:block in irb_binding@(irb)>
;TI"
;TI"# for a method
;TI"#> def foo(bar); puts bar; end
;TI"4> RubyVM::InstructionSequence.of(method(:foo))
;TI"3> #=> <RubyVM::InstructionSequence:foo@(irb)>
;T:@format0o;
; [I"Using ::compile_file:;T@o;; [I"# /tmp/iseq_of.rb
;TI"def hello
;TI" puts "hello, world"
;TI" end
;TI"
;TI"/$a_global_proc = proc { str = 'a' + 'b' }
;TI"
;TI"# in irb
;TI"!> require '/tmp/iseq_of.rb'
;TI"
;TI"# first the method hello
;TI"6> RubyVM::InstructionSequence.of(method(:hello))
;TI";> #=> #<RubyVM::InstructionSequence:0x007fb73d7cb1d0>
;TI"
;TI"# then the global proc
;TI"6> RubyVM::InstructionSequence.of($a_global_proc)
;TI":> #=> #<RubyVM::InstructionSequence:0x007fb73d7caf78>;T;
0:
@fileI"iseq.c;T:0@omit_headings_from_table_of_contents_below000[ I" (p1);T@3FI"InstructionSequence;TcRDoc::NormalClass00