PATH:
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
SyntaxSuggest
U:RDoc::AnyMethod[iI"valid?:ETI"SyntaxSuggest::valid?;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"#SyntaxSuggest.valid? [Private];To:RDoc::Markup::BlankLine o; ; [I";Returns truthy if a given input source is valid syntax;T@o:RDoc::Markup::Verbatim; [I",SyntaxSuggest.valid?(<<~EOM) # => true ;TI" def foo ;TI" end ;TI" EOM ;TI" ;TI"-SyntaxSuggest.valid?(<<~EOM) # => false ;TI" def foo ;TI"% def bar # Syntax error here ;TI" end ;TI" EOM ;T:@format0o; ; [I";You can also pass in an array of lines and they'll be ;TI"joined before evaluating;T@o;; [I"SyntaxSuggest.valid?( ;TI" [ ;TI" "def foo\n", ;TI" "end\n" ;TI" ] ;TI") # => true ;TI" ;TI"SyntaxSuggest.valid?( ;TI" [ ;TI" "def foo\n", ;TI", " def bar\n", # Syntax error here ;TI" "end\n" ;TI" ] ;TI") # => false ;T; 0o; ; [I">As an FYI the CodeLine class instances respond to `to_s` ;TI":so passing a CodeLine in as an object or as an array ;TI"1will convert it to it's code representation.;T: @fileI"lib/syntax_suggest/api.rb;T:0@omit_headings_from_table_of_contents_below000[ I" (source);T@7FI"SyntaxSuggest;TcRDoc::NormalModule00
[+]
Error
[+]
PriorityQueue
[+]
CodeSearch
[+]
RipperErrors
[-] handle_error-c.ri
[edit]
[+]
CleanDocument
[+]
LexValue
[+]
MiniStringIO
[+]
Capture
[+]
LeftRightLexCount
[+]
GetParseErrors
[-] use_prism_parser%3f-c.ri
[edit]
[+]
ExplainSyntax
[+]
ScanHistory
[+]
PriorityEngulfQueue
[+]
UnvisitedLines
[+]
Cli
[+]
CaptureCodeContext
[+]
AroundBlockScan
[+]
DisplayCodeWithLineNumbers
[+]
CodeLine
[-] valid_without%3f-c.ri
[edit]
[+]
PathnameFromMessage
[-] record_dir-c.ri
[edit]
[+]
CodeFrontier
[+]
DisplayInvalidBlocks
[+]
..
[-] module_for_detailed_message-c.ri
[edit]
[-] call-c.ri
[edit]
[+]
BlockExpand
[-] valid%3f-c.ri
[edit]
[+]
LexAll
[+]
CodeBlock
[-] cdesc-SyntaxSuggest.ri
[edit]
[-] invalid%3f-c.ri
[edit]
[+]
ParseBlocksFromIndentLine
[-] detailed_message-i.ri
[edit]