Class: VFS::YAMLVFSEntry Abstract
- Inherits:
-
Object
- Object
- VFS::YAMLVFSEntry
- Defined in:
- lib/yaml-vfs/yaml_vfs.rb
Overview
This class is abstract.
A general purpose pseudo-structure.
Instance Attribute Summary collapse
-
#r_path ⇒ Object
readonly
Returns the value of attribute r_path.
-
#v_path ⇒ Object
readonly
Returns the value of attribute v_path.
Instance Method Summary collapse
- #directory? ⇒ Boolean
-
#initialize(v_path, r_path, directory: false) ⇒ YAMLVFSEntry
constructor
A new instance of YAMLVFSEntry.
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_path ⇒ Object (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_path ⇒ Object (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
12 13 14 |
# File 'lib/yaml-vfs/yaml_vfs.rb', line 12 def directory? @directory end |