Class: SCSSLint::Lint

Inherits:
Object
  • Object
show all
Defined in:
lib/scss_lint/lint.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionObject (readonly)

Returns the value of attribute description.



3
4
5
# File 'lib/scss_lint/lint.rb', line 3

def description
  @description
end

#filenameObject (readonly)

Returns the value of attribute filename.



3
4
5
# File 'lib/scss_lint/lint.rb', line 3

def filename
  @filename
end

#lineObject (readonly)

Returns the value of attribute line.



3
4
5
# File 'lib/scss_lint/lint.rb', line 3

def line
  @line
end

#severityObject (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