Class: Semverve::VersionCodeReferences::Finding
- Inherits:
-
Object
- Object
- Semverve::VersionCodeReferences::Finding
- Defined in:
- lib/semverve/version_code_references.rb
Overview
A code version literal found in a configured 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::VersionCodeReferences::Finding
constructor
Initializes a finding.
Constructor Details
#initialize(path:, line:, column:, version:) ⇒ Semverve::VersionCodeReferences::Finding
Initializes a finding.
53 54 55 56 57 58 |
# File 'lib/semverve/version_code_references.rb', line 53 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.
36 37 38 |
# File 'lib/semverve/version_code_references.rb', line 36 def column @column end |
#line ⇒ Integer (readonly)
One-based line number.
30 31 32 |
# File 'lib/semverve/version_code_references.rb', line 30 def line @line end |
#path ⇒ String (readonly)
Path relative to the configured project root.
24 25 26 |
# File 'lib/semverve/version_code_references.rb', line 24 def path @path end |
#version ⇒ Semverve::SemanticVersion (readonly)
Referenced semantic version.
42 43 44 |
# File 'lib/semverve/version_code_references.rb', line 42 def version @version end |