D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
RubyVM
/
InstructionSequence
/
Filename :
new-c.ri
back
Copy
U:RDoc::AnyMethod[iI"new:ETI"%RubyVM::InstructionSequence::new;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"STakes +source+, which can be a string of Ruby code, or an open +File+ object. ;TI"$that contains Ruby source code.;To:RDoc::Markup::BlankLine o; ; [I"OOptionally takes +file+, +path+, and +line+ which describe the file path, ;TI"Lreal path and first line number of the ruby code in +source+ which are ;TI".metadata attached to the returned +iseq+.;T@o; ; [I"O+file+ is used for `__FILE__` and exception backtrace. +path+ is used for ;TI"N+require_relative+ base. It is recommended these should be the same full ;TI" path.;T@o; ; [I"E+options+, which can be +true+, +false+ or a +Hash+, is used to ;TI";modify the default behavior of the Ruby iseq compiler.;T@o; ; [I"GFor details regarding valid compile options see ::compile_option=.;T@o:RDoc::Markup::Verbatim; [I"6RubyVM::InstructionSequence.compile("a = 1 + 2") ;TI"=#=> <RubyVM::InstructionSequence:<compiled>@<compiled>> ;TI" ;TI"path = "test.rb" ;TI"XRubyVM::InstructionSequence.compile(File.read(path), path, File.expand_path(path)) ;TI"<#=> <RubyVM::InstructionSequence:<compiled>@test.rb:1> ;TI" ;TI"!file = File.open("test.rb") ;TI"/RubyVM::InstructionSequence.compile(file) ;TI"?#=> <RubyVM::InstructionSequence:<compiled>@<compiled>:1> ;TI" ;TI"(path = File.expand_path("test.rb") ;TI"FRubyVM::InstructionSequence.compile(File.read(path), path, path) ;TI"M#=> <RubyVM::InstructionSequence:<compiled>@/absolute/path/to/test.rb:1>;T:@format0: @fileI"iseq.c;T:0@omit_headings_from_table_of_contents_below0I"�InstructionSequence.compile(source[, file[, path[, line[, options]]]]) -> iseq InstructionSequence.new(source[, file[, path[, line[, options]]]]) -> iseq ;T0[ I"(*args);T@1FI"InstructionSequence;TcRDoc::NormalClass00