D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
SyntaxSuggest
/
AroundBlockScan
/
Filename :
scan_while-i.ri
back
Copy
U:RDoc::AnyMethod[iI"scan_while:ETI".SyntaxSuggest::AroundBlockScan#scan_while;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"Main work method;To:RDoc::Markup::BlankLine o; ; [I"EThe scan_while method takes a block that yields lines above and ;TI"Cbelow the block. If the yield returns true, the @before_index ;TI">or @after_index are modified to include the matched line.;T@o; ; [ I"EIn addition to yielding individual lines, the internals of this ;TI"@object give a mini DSL to handle common situations such as ;TI"Fstopping if we've found a keyword/end mis-match in one direction ;TI"or the other.;T: @fileI",lib/syntax_suggest/around_block_scan.rb;T:0@omit_headings_from_table_of_contents_below00I" line;T[ I"();T@FI"AroundBlockScan;TcRDoc::NormalClass00