D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
ErrorHighlight
/
Filename :
spot-c.ri
back
Copy
U:RDoc::AnyMethod[iI" spot:ETI"ErrorHighlight::spot;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"CIdentify the code fragment at that a given exception occurred.;To:RDoc::Markup::BlankLine o; ; [I" Options:;T@o; ; [I"point_type: :name | :args;To:RDoc::Markup::Verbatim; [I"R:name (default) points the method/variable name that the exception occurred. ;TI"P:args points the arguments of the method call that the exception occurred. ;T:@format0o; ; [I"4backtrace_location: Thread::Backtrace::Location;To;; [I"CIt locates the code fragment of the given backtrace_location. ;TI"XBy default, it uses the first frame of backtrace_locations of the given exception. ;T; 0o; ; [I" Returns:;To;; [ I"{ ;TI" first_lineno: Integer, ;TI" first_column: Integer, ;TI" last_lineno: Integer, ;TI" last_column: Integer, ;TI" snippet: String, ;TI" script_lines: [String], ;TI" } | nil ;T; 0o; ; [I"Limitations:;T@o; ; [ I"OCurrently, ErrorHighlight.spot only supports a single-line code fragment. ;TI"WTherefore, if the return value is not nil, first_lineno and last_lineno will have ;TI"Hthe same value. If the relevant code fragment spans multiple lines ;TI"T(e.g., Array#[] of +ary[(newline)expr(newline)]+), the method will return nil. ;TI"3This restriction may be removed in the future.;T: @fileI" lib/error_highlight/base.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(obj, **opts);T@7FI"ErrorHighlight;TcRDoc::NormalModule00