D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
SyntaxSuggest
/
AroundBlockScan
/
Filename :
cdesc-AroundBlockScan.ri
back
Copy
U:RDoc::NormalClass[iI"AroundBlockScan:ETI"#SyntaxSuggest::AroundBlockScan;TI"Object;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"BThis class is useful for exploring contents before and after ;TI"a block;To:RDoc::Markup::BlankLine o; ;[I"BIt searches above and below the passed in block to match for ;TI"#whatever criteria you give it:;T@o; ;[I" Example:;T@o:RDoc::Markup::Verbatim;[I"def dog # 1 ;TI" puts "bark" # 2 ;TI" puts "bark" # 3 ;TI"end # 4 ;TI" ;TI"!scan = AroundBlockScan.new( ;TI" code_lines: code_lines ;TI"2 block: CodeBlock.new(lines: code_lines[1]) ;TI") ;TI" ;TI"scan.scan_while { true } ;TI" ;TI"#puts scan.before_index # => 0 ;TI""puts scan.after_index # => 3;T:@format0: @fileI",lib/syntax_suggest/around_block_scan.rb;T:0@omit_headings_from_table_of_contents_below0; 0;0[ [ [ [[I" class;T[[:public[[I"new;TI",lib/syntax_suggest/around_block_scan.rb;T[:protected[ [:private[ [I" instance;T[[;[[I"code_block;T@6[I"force_add_empty;T@6[I"force_add_hidden;T@6[I"inspect;T@6[I" lines;T@6[I"lookahead_balance_one_line;T@6[I"scan_adjacent_indent;T@6[I"scan_neighbors_not_empty;T@6[I"scan_while;T@6[I"stop_after_kw;T@6[;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ; 0;0[@*I"SyntaxSuggest;TcRDoc::NormalModule