Class: Capsium::Package::LayerConfig
- Inherits:
-
Lutaml::Model::Serializable
- Object
- Lutaml::Model::Serializable
- Capsium::Package::LayerConfig
- Defined in:
- lib/capsium/package/storage_config.rb,
sig/capsium/package/storage_config.rbs
Overview
A single storage layer entry (ARCHITECTURE.md section 5a): a package-relative directory mirroring the content/ tree. Layers are stacked bottom -> top in declaration order; "visibility: private" layers are hidden from dependent packages.
Instance Attribute Summary collapse
-
#path ⇒ String?
Returns the value of attribute path.
-
#visibility ⇒ String
Returns the value of attribute visibility.
-
#writable ⇒ Boolean
Returns the value of attribute writable.
Instance Method Summary collapse
- #initialize ⇒ Object constructor
- #private? ⇒ Boolean
- #to_hash ⇒ Hash[String, untyped]
- #to_json ⇒ String
Constructor Details
#initialize ⇒ Object
12 |
# File 'sig/capsium/package/storage_config.rbs', line 12
def initialize: (?path: String? path, ?writable: bool writable,
|
Instance Attribute Details
#path ⇒ String?
Returns the value of attribute path.
8 9 10 |
# File 'sig/capsium/package/storage_config.rbs', line 8 def path @path end |
#visibility ⇒ String
Returns the value of attribute visibility.
10 11 12 |
# File 'sig/capsium/package/storage_config.rbs', line 10 def visibility @visibility end |
#writable ⇒ Boolean
Returns the value of attribute writable.
9 10 11 |
# File 'sig/capsium/package/storage_config.rbs', line 9 def writable @writable end |
Instance Method Details
#private? ⇒ Boolean
67 68 69 |
# File 'lib/capsium/package/storage_config.rb', line 67 def private? visibility == "private" end |
#to_hash ⇒ Hash[String, untyped]
18 |
# File 'sig/capsium/package/storage_config.rbs', line 18
def to_hash: () -> Hash[String, untyped]
|
#to_json ⇒ String
17 |
# File 'sig/capsium/package/storage_config.rbs', line 17
def to_json: (*untyped args) -> String
|