D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
SyntaxSuggest
/
BlockExpand
/
Filename :
cdesc-BlockExpand.ri
back
Copy
U:RDoc::NormalClass[iI"BlockExpand:ETI"SyntaxSuggest::BlockExpand;TI"Object;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"CThis class is responsible for taking a code block that exists ;TI"Cat a far indentaion and then iteratively increasing the block ;TI"Fso that it captures everything within the same indentation block.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim;[ I" def dog ;TI" puts "bow" ;TI" puts "wow" ;TI" end ;T:@format0o; ;[I"4block = BlockExpand.new(code_lines: code_lines);To;;[I"0.call(CodeBlock.new(lines: code_lines[1])) ;T;0o; ;[I"puts block.to_s ;TI"# => puts "bow";To;;[I"puts "wow" ;T;0o; ;[I"LOnce a code block has captured everything at a given indentation level ;TI"<then it will expand to capture surrounding indentation.;T@o; ;[I"4block = BlockExpand.new(code_lines: code_lines);To;;[I".call(block) ;T;0o; ;[I"block.to_s ;TI"# => def dog;To;;[I" puts "bow" ;TI" puts "wow" ;TI"end;T;0: @fileI"'lib/syntax_suggest/block_expand.rb;T:0@omit_headings_from_table_of_contents_below0; 0;0[ [ [ [[I" class;T[[:public[[I"new;TI"'lib/syntax_suggest/block_expand.rb;T[:protected[ [:private[ [I" instance;T[[;[ [I" call;T@F[I"expand_indent;T@F[I"expand_neighbors;T@F[I"inspect;T@F[;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ; 0;0[@:I"SyntaxSuggest;TcRDoc::NormalModule