D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
SyntaxSuggest
/
CodeLine
/
Filename :
cdesc-CodeLine.ri
back
Copy
U:RDoc::NormalClass[iI" CodeLine:ETI"SyntaxSuggest::CodeLine;TI"Object;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"<Represents a single line of code of a given source file;To:RDoc::Markup::BlankLine o; ;[ I":This object contains metadata about the line such as ;TI"7amount of indentation, if it is empty or not, and ;TI";lexical data, such as if it has an `end` or a keyword ;TI"in it.;T@o; ;[I"IVisibility of lines can be toggled off. Marking a line as invisible ;TI"=indicates that it should not be used for syntax checks. ;TI"5It's functionally the same as commenting it out.;T@o; ;[I" Example:;T@o:RDoc::Markup::Verbatim;[I"4line = CodeLine.from_source("def foo\n").first ;TI"line.number => 1 ;TI"line.empty? # => false ;TI"line.visible? # => true ;TI"line.mark_invisible ;TI"line.visible? # => false;T:@format0: @fileI"$lib/syntax_suggest/code_line.rb;T:0@omit_headings_from_table_of_contents_below0; 0;0[[ I"indent;TI"R;T:publicFI"$lib/syntax_suggest/code_line.rb;T[ I" index;T@,;F@-[ I"lex;T@,;F@-[ I" line;T@,;F@-[ I"line_number;T@,;F@-[ I"number;T@,;F@-[ I" original;T@,;F@-[U:RDoc::Constant[i I"TRAILING_SLASH;TI",SyntaxSuggest::CodeLine::TRAILING_SLASH;T;0o;;[ ; @(;0@(@cRDoc::NormalClass0[ [[I" class;T[[;[[I"from_source;T@-[I"new;T@-[:protected[ [:private[ [I" instance;T[[;[[I"<=>;T@-[I"empty?;T@-[I"hidden?;T@-[I"ignore_newline_not_beg?;T@-[I"indent_index;T@-[I"is_end?;T@-[I"is_kw?;T@-[I"mark_invisible;T@-[I"not_empty?;T@-[I" to_s;T@-[I"trailing_slash?;T@-[I" visible?;T@-[;[ [;[[I"set_kw_end;T@-[ [U:RDoc::Context::Section[i 0o;;[ ; 0;0[@(I"SyntaxSuggest;TcRDoc::NormalModule