class SCSSLint::Lint
Stores information about a single problem that was detected by a [Linter].
Attributes
description[R]
filename[R]
linter[R]
location[R]
severity[R]
Public Class Methods
new(linter, filename, location, description, severity = :warning)
click to toggle source
@param linter [SCSSLint::Linter] @param filename [String] @param location [SCSSLint::Location] @param description [String] @param severity [Symbol]
# 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
Public Instance Methods
error?()
click to toggle source
@return [Boolean]
# File lib/scss_lint/lint.rb, line 20 def error? severity == :error end