Class: Semverve::VersionReferences::Finding
- Inherits:
-
Object
- Object
- Semverve::VersionReferences::Finding
- Defined in:
- lib/semverve/version_references.rb
Overview
A stale or non-current version reference found in a project file.
Instance Attribute Summary collapse
-
#column ⇒ Integer
readonly
One-based column number.
-
#line ⇒ Integer
readonly
One-based line number.
-
#path ⇒ String
readonly
Path relative to the configured project root.
-
#version ⇒ Semverve::SemanticVersion
readonly
Referenced semantic version.
Instance Method Summary collapse
-
#initialize(path:, line:, column:, version:) ⇒ Semverve::VersionReferences::Finding
constructor
Initializes a finding.
Constructor Details
#initialize(path:, line:, column:, version:) ⇒ Semverve::VersionReferences::Finding
Initializes a finding.
67 68 69 70 71 72 |
# File 'lib/semverve/version_references.rb', line 67 def initialize(path:, line:, column:, version:) @path = path @line = line @column = column @version = version end |
Instance Attribute Details
#column ⇒ Integer (readonly)
One-based column number.
50 51 52 |
# File 'lib/semverve/version_references.rb', line 50 def column @column end |
#line ⇒ Integer (readonly)
One-based line number.
44 45 46 |
# File 'lib/semverve/version_references.rb', line 44 def line @line end |
#path ⇒ String (readonly)
Path relative to the configured project root.
38 39 40 |
# File 'lib/semverve/version_references.rb', line 38 def path @path end |
#version ⇒ Semverve::SemanticVersion (readonly)
Referenced semantic version.
56 57 58 |
# File 'lib/semverve/version_references.rb', line 56 def version @version end |