📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 13:54:42
📂
/ (Root)
/
opt
/
alt
/
ruby33
/
share
/
ri
/
system
/
SyntaxSuggest
/
Capture
/
BeforeAfterKeywordEnds
📍 /opt/alt/ruby33/share/ri/system/SyntaxSuggest/Capture/BeforeAfterKeywordEnds
🔄 Refresh
✏️
Editing: cdesc-BeforeAfterKeywordEnds.ri
Read Only
U:RDoc::NormalClass[iI"BeforeAfterKeywordEnds:ETI"3SyntaxSuggest::Capture::BeforeAfterKeywordEnds;TI"Object;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"#Shows surrounding kw/end pairs;To:RDoc::Markup::BlankLine o; ;[I">The purpose of showing these extra pairs is due to cases ;TI"8of ambiguity when only one visible line is matched.;T@o; ;[I"For example:;T@o:RDoc::Markup::Verbatim;[ I"1 class Dog ;TI"2 def bark ;TI"4 def eat ;TI"5 end ;TI"6 end ;T:@format0o; ;[I"=In this case either line 2 could be missing an `end` or ;TI"<line 4 was an extra line added by mistake (it happens).;T@o; ;[I"9When we detect the above problem it shows the issue ;TI"as only being on line 2;T@o;;[I"2 def bark ;T;0o; ;[I":Showing "neighbor" keyword pairs gives extra context:;T@o;;[I"2 def bark ;TI"4 def eat ;TI"5 end ;T;0o; ;[I" Example:;T@o;;[ I")lines = BeforeAfterKeywordEnds.new( ;TI" block: block, ;TI" code_lines: code_lines ;TI" ).call();T;0: @fileI"<lib/syntax_suggest/capture/before_after_keyword_ends.rb;T:0@omit_headings_from_table_of_contents_below0; 0;0[ [ [ [[I" class;T[[:public[ [:protected[ [:private[[I"new;TI"<lib/syntax_suggest/capture/before_after_keyword_ends.rb;T[I" instance;T[[;[ [;[ [;[[I" call;T@L[ [U:RDoc::Context::Section[i 0o;;[ ; 0;0[I"<lib/syntax_suggest/capture/before_after_keyword_ends.rb;TI"SyntaxSuggest::Capture;TcRDoc::NormalModule
💾 Save Changes
❌ Cancel