D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
SyntaxSuggest
/
BlockExpand
/
Filename :
expand_indent-i.ri
back
Copy
U:RDoc::AnyMethod[iI"expand_indent:ETI"-SyntaxSuggest::BlockExpand#expand_indent;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"0Expands code to the next lowest indentation;To:RDoc::Markup::BlankLine o; ; [I"For example:;T@o:RDoc::Markup::Verbatim; [I"1 def dog ;TI"2 print "dog" ;TI"3 end ;T:@format0o; ; [I"TIf a block starts on line 2 then it has captured all it's "neighbors" (code at ;TI"Uthe same indentation or higher). To continue expanding, this block must capture ;TI"Dlines one and three which are at a different indentation level.;T@o; ; [I"VThis method allows fully expanded blocks to decrease their indentation level (so ;TI"Tthey can expand to capture more code up and down). It does this conservatively ;TI"$as there's no undo (currently).;T: @fileI"'lib/syntax_suggest/block_expand.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(block);T@!FI"BlockExpand;TcRDoc::NormalClass00