Class: Beni::Configuration
- Inherits:
-
Object
- Object
- Beni::Configuration
- Defined in:
- lib/beni/configuration.rb,
sig/beni/configuration.rbs
Overview
Resolution output of the Tasks DSL — immutable, defaults applied.
The only input the task-definition phase reads: vendor_dir fully
resolved (declaration > BENI_VENDOR_DIR > vendor/), build_config
as an absolute path or nil for mruby's untouched upstream default,
targets as the declared set (or ["host"]), and toolchains as
the reference-driven selection.
Instance Attribute Summary collapse
-
#build_config ⇒ String?
readonly
Returns the value of attribute build_config.
-
#targets ⇒ Array[String]
readonly
Returns the value of attribute targets.
-
#toolchains ⇒ Array[SelectedToolchain]
readonly
Returns the value of attribute toolchains.
-
#vendor_dir ⇒ String
readonly
Returns the value of attribute vendor_dir.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
-
#mruby_version ⇒ String
mruby's selected version.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 |
# File 'sig/beni/configuration.rbs', line 8
def initialize: (vendor_dir: String, build_config: String?, targets: Array[String], toolchains: Array[SelectedToolchain]) -> void
|
Instance Attribute Details
#build_config ⇒ String? (readonly)
Returns the value of attribute build_config.
4 5 6 |
# File 'sig/beni/configuration.rbs', line 4 def build_config @build_config end |
#targets ⇒ Array[String] (readonly)
Returns the value of attribute targets.
5 6 7 |
# File 'sig/beni/configuration.rbs', line 5 def targets @targets end |
#toolchains ⇒ Array[SelectedToolchain] (readonly)
Returns the value of attribute toolchains.
6 7 8 |
# File 'sig/beni/configuration.rbs', line 6 def toolchains @toolchains end |
#vendor_dir ⇒ String (readonly)
Returns the value of attribute vendor_dir.
3 4 5 |
# File 'sig/beni/configuration.rbs', line 3 def vendor_dir @vendor_dir end |
Instance Method Details
#mruby_version ⇒ String
mruby's selected version. Resolution always selects mruby and
leads the toolchain set with it, so it is the head's version.
13 14 15 |
# File 'lib/beni/configuration.rb', line 13 def mruby_version toolchains.first.version end |