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
34 35 36 |
# File 'lib/capsium/package/merged_view.rb', line 34 def root @root end |
#tombstones ⇒ Object (readonly)
Returns the value of attribute tombstones
34 35 36 |
# File 'lib/capsium/package/merged_view.rb', line 34 def tombstones @tombstones end |
#visibility ⇒ Object (readonly)
Returns the value of attribute visibility
34 35 36 |
# File 'lib/capsium/package/merged_view.rb', line 34 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
39 40 41 |
# File 'lib/capsium/package/merged_view.rb', line 39 def absolute(content_relative_path) File.join(root, content_relative_path) end |
#file?(content_relative_path) ⇒ Boolean
35 36 37 |
# File 'lib/capsium/package/merged_view.rb', line 35 def file?(content_relative_path) File.file?(absolute(content_relative_path)) end |