Class: VFS::YAMLVFSEntry Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/yaml-vfs/yaml_vfs.rb

Overview

This class is abstract.

A general purpose pseudo-structure.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(v_path, r_path, directory: false) ⇒ YAMLVFSEntry

Returns a new instance of YAMLVFSEntry.



16
17
18
19
20
# File 'lib/yaml-vfs/yaml_vfs.rb', line 16

def initialize(v_path, r_path, directory: false)
  @v_path = v_path
  @r_path = r_path
  @directory = directory
end

Instance Attribute Details

#r_pathObject (readonly)

Returns the value of attribute r_path.



10
11
12
# File 'lib/yaml-vfs/yaml_vfs.rb', line 10

def r_path
  @r_path
end

#v_pathObject (readonly)

Returns the value of attribute v_path.



10
11
12
# File 'lib/yaml-vfs/yaml_vfs.rb', line 10

def v_path
  @v_path
end

Instance Method Details

#directory?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/yaml-vfs/yaml_vfs.rb', line 12

def directory?
  @directory
end