Class: HTML::Proofer::Checks::Issue

Inherits:
Object
  • Object
show all
Defined in:
lib/html/proofer/issue.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, desc, status = nil) ⇒ Issue

Returns a new instance of Issue.



10
11
12
13
14
# File 'lib/html/proofer/issue.rb', line 10

def initialize(path, desc, status = nil)
  @path = path
  @desc = desc
  @status = status
end

Instance Attribute Details

#descObject (readonly)

Returns the value of attribute desc.



8
9
10
# File 'lib/html/proofer/issue.rb', line 8

def desc
  @desc
end

#pathObject (readonly)

Returns the value of attribute path.



8
9
10
# File 'lib/html/proofer/issue.rb', line 8

def path
  @path
end

#statusObject (readonly)

Returns the value of attribute status.



8
9
10
# File 'lib/html/proofer/issue.rb', line 8

def status
  @status
end

Instance Method Details

#to_sObject



16
17
18
# File 'lib/html/proofer/issue.rb', line 16

def to_s
  "#{HTML::colorize(:blue, @path)}: #{desc}"
end