Class: GherkinLint::Issue

Inherits:
Object
  • Object
show all
Includes:
Term::ANSIColor
Defined in:
lib/gherkin_lint/issue.rb

Overview

entity value class for issues

Direct Known Subclasses

Error, Warning

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, references, description = nil) ⇒ Issue

Returns a new instance of Issue.



9
10
11
12
13
# File 'lib/gherkin_lint/issue.rb', line 9

def initialize(name, references, description = nil)
  @name = name
  @references = references
  @description = description
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



7
8
9
# File 'lib/gherkin_lint/issue.rb', line 7

def description
  @description
end

#nameObject (readonly)

Returns the value of attribute name.



7
8
9
# File 'lib/gherkin_lint/issue.rb', line 7

def name
  @name
end

#referencesObject (readonly)

Returns the value of attribute references.



7
8
9
# File 'lib/gherkin_lint/issue.rb', line 7

def references
  @references
end