Class: Capsium::Package::MergedView::Layer
- Inherits:
-
Data
- Object
- Data
- Capsium::Package::MergedView::Layer
- Defined in:
- lib/capsium/package/merged_view.rb,
sig/capsium/package/merged_view.rbs
Overview
A single read layer: an absolute root directory mirroring the content/ tree, plus its parsed tombstone set.
Instance Attribute Summary collapse
-
#root ⇒ Object
readonly
Returns the value of attribute root.
-
#tombstones ⇒ Object
readonly
Returns the value of attribute tombstones.
-
#visibility ⇒ Object
readonly
Returns the value of attribute visibility.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#root ⇒ Object (readonly)
Returns the value of attribute root
32 33 34 |
# File 'lib/capsium/package/merged_view.rb', line 32 def root @root end |
#tombstones ⇒ Object (readonly)
Returns the value of attribute tombstones
32 33 34 |
# File 'lib/capsium/package/merged_view.rb', line 32 def tombstones @tombstones end |
#visibility ⇒ Object (readonly)
Returns the value of attribute visibility
32 33 34 |
# File 'lib/capsium/package/merged_view.rb', line 32 def visibility @visibility end |
Class Method Details
.new ⇒ void
This method returns an undefined value.
9 |
# File 'sig/capsium/package/merged_view.rbs', line 9
def self.new: (String root, String visibility, Set[String] tombstones) -> void
|
Instance Method Details
#absolute(content_relative_path) ⇒ String
37 38 39 |
# File 'lib/capsium/package/merged_view.rb', line 37 def absolute(content_relative_path) File.join(root, content_relative_path) end |
#file?(content_relative_path) ⇒ Boolean
33 34 35 |
# File 'lib/capsium/package/merged_view.rb', line 33 def file?(content_relative_path) File.file?(absolute(content_relative_path)) end |