Class: SCSSLint::Lint
- Inherits:
-
Object
- Object
- SCSSLint::Lint
- Defined in:
- lib/scss_lint/lint.rb
Overview
Stores information about a single problem that was detected by a [Linter].
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
-
#linter ⇒ Object
readonly
Returns the value of attribute linter.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#severity ⇒ Object
readonly
Returns the value of attribute severity.
Instance Method Summary collapse
- #error? ⇒ Boolean
-
#initialize(linter, filename, location, description, severity = :warning) ⇒ Lint
constructor
A new instance of Lint.
Constructor Details
#initialize(linter, filename, location, description, severity = :warning) ⇒ Lint
Returns a new instance of Lint.
11 12 13 14 15 16 17 |
# File 'lib/scss_lint/lint.rb', line 11 def initialize(linter, filename, location, description, severity = :warning) @linter = linter @filename = filename @location = location @description = description @severity = severity end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
4 5 6 |
# File 'lib/scss_lint/lint.rb', line 4 def description @description end |
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
4 5 6 |
# File 'lib/scss_lint/lint.rb', line 4 def filename @filename end |
#linter ⇒ Object (readonly)
Returns the value of attribute linter.
4 5 6 |
# File 'lib/scss_lint/lint.rb', line 4 def linter @linter end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
4 5 6 |
# File 'lib/scss_lint/lint.rb', line 4 def location @location end |
#severity ⇒ Object (readonly)
Returns the value of attribute severity.
4 5 6 |
# File 'lib/scss_lint/lint.rb', line 4 def severity @severity end |
Instance Method Details
#error? ⇒ Boolean
20 21 22 |
# File 'lib/scss_lint/lint.rb', line 20 def error? severity == :error end |