Class: Solis::OverlayFS::OverlayStat
- Inherits:
-
Object
- Object
- Solis::OverlayFS::OverlayStat
- Defined in:
- lib/solis/overlay_fs.rb
Overview
Stat wrapper for overlay files
Instance Attribute Summary collapse
-
#layer ⇒ Object
readonly
Returns the value of attribute layer.
-
#real_path ⇒ Object
readonly
Returns the value of attribute real_path.
-
#relative_path ⇒ Object
readonly
Returns the value of attribute relative_path.
Instance Method Summary collapse
-
#initialize(real_stat, layer:, real_path:, relative_path:) ⇒ OverlayStat
constructor
A new instance of OverlayStat.
- #to_s ⇒ Object (also: #inspect)
Constructor Details
#initialize(real_stat, layer:, real_path:, relative_path:) ⇒ OverlayStat
Returns a new instance of OverlayStat.
106 107 108 109 110 111 |
# File 'lib/solis/overlay_fs.rb', line 106 def initialize(real_stat, layer:, real_path:, relative_path:) @stat = real_stat @layer = layer @real_path = real_path @relative_path = relative_path end |
Instance Attribute Details
#layer ⇒ Object (readonly)
Returns the value of attribute layer.
104 105 106 |
# File 'lib/solis/overlay_fs.rb', line 104 def layer @layer end |
#real_path ⇒ Object (readonly)
Returns the value of attribute real_path.
104 105 106 |
# File 'lib/solis/overlay_fs.rb', line 104 def real_path @real_path end |
#relative_path ⇒ Object (readonly)
Returns the value of attribute relative_path.
104 105 106 |
# File 'lib/solis/overlay_fs.rb', line 104 def relative_path @relative_path end |
Instance Method Details
#to_s ⇒ Object Also known as: inspect
124 125 126 |
# File 'lib/solis/overlay_fs.rb', line 124 def to_s "#<OverlayStat #{@relative_path} (#{@layer})>" end |