Class: Ruber::SyntaxChecker::SyntaxError
- Inherits:
-
Struct
- Object
- Struct
- Ruber::SyntaxChecker::SyntaxError
- Defined in:
- plugins/syntax_checker/syntax_checker.rb,
plugins/syntax_checker/syntax_checker.rb
Instance Attribute Summary (collapse)
-
- (Object) column
Returns the value of attribute column.
-
- (Object) formatted_message
Returns the value of attribute formatted_message.
-
- (Object) line
Returns the value of attribute line.
-
- (Object) message
Returns the value of attribute message.
Instance Method Summary (collapse)
API for feature syntax_checker
Instance Attribute Details
- (Object) column
Returns the value of attribute column
65 66 67 |
# File 'plugins/syntax_checker/syntax_checker.rb', line 65 def column @column end |
- (Object) formatted_message
Returns the value of attribute formatted_message
65 66 67 |
# File 'plugins/syntax_checker/syntax_checker.rb', line 65 def @formatted_message end |
- (Object) line
Returns the value of attribute line
65 66 67 |
# File 'plugins/syntax_checker/syntax_checker.rb', line 65 def line @line end |
- (Object) message
Returns the value of attribute message
65 66 67 |
# File 'plugins/syntax_checker/syntax_checker.rb', line 65 def @message end |
Instance Method Details
- (Object) format
69 70 71 72 73 74 75 76 77 |
# File 'plugins/syntax_checker/syntax_checker.rb', line 69 def format res = "" res << KDE.i18n("Line %d") % (line + 1) if line res << KDE.i18n(", column %d") % (column + 1) if line and column msg = || res << ": " if msg and !res.empty? res << msg res end |