Class: Beni::SelectedToolchain
- Inherits:
-
Object
- Object
- Beni::SelectedToolchain
- Defined in:
- lib/beni/selected_toolchain.rb,
sig/beni/selected_toolchain.rbs
Overview
One selected toolchain with its resolved (version, sha256) pair.
sha256 is concrete at resolution time — a definition's declared
value or the built-in checksum Beni::Vendor resolves. nil has
exactly one reachable meaning: mruby at a non-default version, where
verification falls to the TOFU sidecar path.
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
Returns the value of attribute name.
-
#sha256 ⇒ String?
readonly
Returns the value of attribute sha256.
-
#version ⇒ String
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize ⇒ SelectedToolchain
constructor
A new instance of SelectedToolchain.
Constructor Details
#initialize ⇒ SelectedToolchain
Returns a new instance of SelectedToolchain.
7 |
# File 'sig/beni/selected_toolchain.rbs', line 7
def initialize: (name: String, version: String, sha256: String?) -> void
|
Instance Attribute Details
#name ⇒ String (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'sig/beni/selected_toolchain.rbs', line 3 def name @name end |
#sha256 ⇒ String? (readonly)
Returns the value of attribute sha256.
5 6 7 |
# File 'sig/beni/selected_toolchain.rbs', line 5 def sha256 @sha256 end |
#version ⇒ String (readonly)
Returns the value of attribute version.
4 5 6 |
# File 'sig/beni/selected_toolchain.rbs', line 4 def version @version end |