D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
SyntaxSuggest
/
PathnameFromMessage
/
Filename :
cdesc-PathnameFromMessage.ri
back
Copy
U:RDoc::NormalClass[iI"PathnameFromMessage:ETI"'SyntaxSuggest::PathnameFromMessage;TI"Object;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"-Converts a SyntaxError message to a path;To:RDoc::Markup::BlankLine o; ;[I";Handles the case where the filename has a colon in it ;TI"Xsuch as on a windows file system: https://github.com/ruby/syntax_suggest/issues/111;T@o; ;[I" Example:;T@o:RDoc::Markup::Verbatim;[I"{message = "/tmp/scratch:2:in `require_relative': /private/tmp/bad.rb:1: syntax error, unexpected `end' (SyntaxError)" ;TI"5puts PathnameFromMessage.new(message).call.name ;TI"# => "/tmp/scratch.rb";T:@format0: @fileI"0lib/syntax_suggest/pathname_from_message.rb;T:0@omit_headings_from_table_of_contents_below0; 0;0[[ I" name;TI"R;T:publicFI"0lib/syntax_suggest/pathname_from_message.rb;T[U:RDoc::Constant[i I"EVAL_RE;TI"0SyntaxSuggest::PathnameFromMessage::EVAL_RE;T;0o;;[ ; @;0@@cRDoc::NormalClass0U;[i I"STREAMING_RE;TI"5SyntaxSuggest::PathnameFromMessage::STREAMING_RE;T;0o;;[ ; @;0@@@+0[ [[I" class;T[[;[[I"new;T@#[:protected[ [:private[ [I" instance;T[[;[[I" call;T@#[I"skip_missing_file_name?;T@#[I" stop?;T@#[;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ; 0;0[@I"SyntaxSuggest;TcRDoc::NormalModule