Class: SCSSLint::Lint
- Inherits:
-
Object
- Object
- SCSSLint::Lint
- Defined in:
- lib/scss_lint/lint.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#severity ⇒ Object
readonly
Returns the value of attribute severity.
Instance Method Summary collapse
- #error? ⇒ Boolean
-
#initialize(filename, line, description, severity = :warning) ⇒ Lint
constructor
A new instance of Lint.
Constructor Details
#initialize(filename, line, description, severity = :warning) ⇒ Lint
5 6 7 8 9 10 |
# File 'lib/scss_lint/lint.rb', line 5 def initialize(filename, line, description, severity = :warning) @filename = filename @line = line @description = description @severity = severity end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
3 4 5 |
# File 'lib/scss_lint/lint.rb', line 3 def description @description end |
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
3 4 5 |
# File 'lib/scss_lint/lint.rb', line 3 def filename @filename end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
3 4 5 |
# File 'lib/scss_lint/lint.rb', line 3 def line @line end |
#severity ⇒ Object (readonly)
Returns the value of attribute severity.
3 4 5 |
# File 'lib/scss_lint/lint.rb', line 3 def severity @severity end |
Instance Method Details
#error? ⇒ Boolean
12 13 14 |
# File 'lib/scss_lint/lint.rb', line 12 def error? severity == :error end |