Class: JSLintJohnson::LintError
- Inherits:
-
Object
- Object
- JSLintJohnson::LintError
- Defined in:
- lib/jslint-johnson/lint_error.rb
Instance Attribute Summary collapse
-
#character ⇒ Object
readonly
Returns the value of attribute character.
-
#evidence ⇒ Object
readonly
Returns the value of attribute evidence.
-
#line_number ⇒ Object
readonly
Returns the value of attribute line_number.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(jsobject) ⇒ LintError
constructor
A new instance of LintError.
Constructor Details
#initialize(jsobject) ⇒ LintError
Returns a new instance of LintError.
6 7 8 9 10 11 |
# File 'lib/jslint-johnson/lint_error.rb', line 6 def initialize(jsobject) @line_number = jsobject["line"] @character = jsobject["character"] @reason = jsobject["reason"] @evidence = jsobject["evidence"] end |
Instance Attribute Details
#character ⇒ Object (readonly)
Returns the value of attribute character.
4 5 6 |
# File 'lib/jslint-johnson/lint_error.rb', line 4 def character @character end |
#evidence ⇒ Object (readonly)
Returns the value of attribute evidence.
4 5 6 |
# File 'lib/jslint-johnson/lint_error.rb', line 4 def evidence @evidence end |
#line_number ⇒ Object (readonly)
Returns the value of attribute line_number.
4 5 6 |
# File 'lib/jslint-johnson/lint_error.rb', line 4 def line_number @line_number end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
4 5 6 |
# File 'lib/jslint-johnson/lint_error.rb', line 4 def reason @reason end |