Class: SyntaxSuggest::RipperErrors
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Ripper
|
|
Instance Chain:
self,
Ripper
|
|
Inherits: |
Ripper
|
Defined in: | lib/syntax_suggest/ripper_errors.rb |
Overview
Instance Attribute Summary
- #errors readonly
Instance Method Summary
- #call
-
#compile_error(msg)
Alias for #on_parse_error.
-
#on_alias_error(msg)
Alias for #on_parse_error.
-
#on_assign_error(msg)
Alias for #on_parse_error.
-
#on_class_name_error(msg)
Alias for #on_parse_error.
-
#on_param_error(msg)
Alias for #on_parse_error.
-
#on_parse_error(msg)
(also: #on_alias_error, #on_assign_error, #on_class_name_error, #on_param_error, #compile_error)
Comes from ripper, called on every parse error, msg is a string.
Instance Attribute Details
#errors (readonly)
[ GitHub ]# File 'lib/syntax_suggest/ripper_errors.rb', line 11
attr_reader :errors
Instance Method Details
#call
[ GitHub ]# File 'lib/syntax_suggest/ripper_errors.rb', line 27
def call @run_once ||= begin @errors = [] parse true end self end
#compile_error(msg)
Alias for #on_parse_error.
# File 'lib/syntax_suggest/ripper_errors.rb', line 25
alias_method :compile_error, :on_parse_error
#on_alias_error(msg)
Alias for #on_parse_error.
# File 'lib/syntax_suggest/ripper_errors.rb', line 21
alias_method :on_alias_error, :on_parse_error
#on_assign_error(msg)
Alias for #on_parse_error.
# File 'lib/syntax_suggest/ripper_errors.rb', line 22
alias_method :on_assign_error, :on_parse_error
#on_class_name_error(msg)
Alias for #on_parse_error.
# File 'lib/syntax_suggest/ripper_errors.rb', line 23
alias_method :on_class_name_error, :on_parse_error
#on_param_error(msg)
Alias for #on_parse_error.
# File 'lib/syntax_suggest/ripper_errors.rb', line 24
alias_method :on_param_error, :on_parse_error
#on_parse_error(msg) Also known as: #on_alias_error, #on_assign_error, #on_class_name_error, #on_param_error, #compile_error
Comes from ripper, called on every parse error, msg is a string
# File 'lib/syntax_suggest/ripper_errors.rb', line 16
def on_parse_error(msg) @errors ||= [] @errors << msg end