Class: Solis::OverlayFS::OverlayStat

Inherits:
Object
  • Object
show all
Defined in:
lib/solis/overlay_fs.rb

Overview

Stat wrapper for overlay files

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#layerObject (readonly)

Returns the value of attribute layer.



104
105
106
# File 'lib/solis/overlay_fs.rb', line 104

def layer
  @layer
end

#real_pathObject (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_pathObject (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_sObject Also known as: inspect



124
125
126
# File 'lib/solis/overlay_fs.rb', line 124

def to_s
  "#<OverlayStat #{@relative_path} (#{@layer})>"
end