Class: Ruber::SyntaxChecker::SyntaxCheckerPlugin::ErrorDescription

Inherits:
Struct
  • Object
show all
Defined in:
plugins/syntax_checker/syntax_checker.rb

Overview

Class containing the information about a syntax error. It has four attributes: line:= the line at which the syntax error occurred (note that this starts from 1, while Document and EditorView count lines from 0) message:= a string describing the syntax error code:= a string with the code around the point where the syntax error occurred column:= the column at which the syntax error occurred

This class’constructor can take up to four parameters, corresponding (in the same order) to the four attributes described above.

Instance Attribute Summary (collapse)

Instance Attribute Details

- (Object) code

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



84
85
86
# File 'plugins/syntax_checker/syntax_checker.rb', line 84

def code
  @code
end

- (Object) column

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



84
85
86
# File 'plugins/syntax_checker/syntax_checker.rb', line 84

def column
  @column
end

- (Object) line

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



84
85
86
# File 'plugins/syntax_checker/syntax_checker.rb', line 84

def line
  @line
end

- (Object) message

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



84
85
86
# File 'plugins/syntax_checker/syntax_checker.rb', line 84

def message
  @message
end