D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
RubyVM
/
InstructionSequence
/
Filename :
compile_file-c.ri
back
Copy
U:RDoc::AnyMethod[iI"compile_file:ETI".RubyVM::InstructionSequence::compile_file;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"LTakes +file+, a String with the location of a Ruby source file, reads, ;TI"Dparses and compiles the file, and returns +iseq+, the compiled ;TI";InstructionSequence with source location metadata set.;To:RDoc::Markup::BlankLine o; ; [I"NOptionally takes +options+, which can be +true+, +false+ or a +Hash+, 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"# /tmp/hello.rb ;TI"puts "Hello, world!" ;TI" ;TI"# elsewhere ;TI"?RubyVM::InstructionSequence.compile_file("/tmp/hello.rb") ;TI";#=> <RubyVM::InstructionSequence:<main>@/tmp/hello.rb>;T:@format0: @fileI"iseq.c;T:0@omit_headings_from_table_of_contents_below0I"?InstructionSequence.compile_file(file[, options]) -> iseq ;T0[ I"(p1, *args, p3 = {});T@ FI"InstructionSequence;TcRDoc::NormalClass00