Class: Solis::OverlayFS::Entry

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

Overview

Directory entry for enumeration

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#layerObject

Returns the value of attribute layer

Returns:

  • (Object)

    the current value of layer



131
132
133
# File 'lib/solis/overlay_fs.rb', line 131

def layer
  @layer
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



131
132
133
# File 'lib/solis/overlay_fs.rb', line 131

def name
  @name
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



131
132
133
# File 'lib/solis/overlay_fs.rb', line 131

def path
  @path
end

#relative_pathObject

Returns the value of attribute relative_path

Returns:

  • (Object)

    the current value of relative_path



131
132
133
# File 'lib/solis/overlay_fs.rb', line 131

def relative_path
  @relative_path
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



131
132
133
# File 'lib/solis/overlay_fs.rb', line 131

def type
  @type
end

Instance Method Details

#directory?Boolean

Returns:

  • (Boolean)


136
137
138
# File 'lib/solis/overlay_fs.rb', line 136

def directory?
  type == :directory
end

#file?Boolean

Returns:

  • (Boolean)


132
133
134
# File 'lib/solis/overlay_fs.rb', line 132

def file?
  type == :file
end

#symlink?Boolean

Returns:

  • (Boolean)


140
141
142
# File 'lib/solis/overlay_fs.rb', line 140

def symlink?
  type == :symlink
end