Class: DevSuite::DirectoryTree::Node::PermissionDenied
- Defined in:
- lib/dev_suite/directory_tree/node/permission_denied.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #children ⇒ Object
- #directory? ⇒ Boolean
-
#initialize(name, is_directory) ⇒ PermissionDenied
constructor
This class is used to represent a file or directory that the user does not have permission to access.
Methods inherited from Base
Constructor Details
#initialize(name, is_directory) ⇒ PermissionDenied
This class is used to represent a file or directory that the user does not have permission to access.
8 9 10 11 |
# File 'lib/dev_suite/directory_tree/node/permission_denied.rb', line 8 def initialize(name, is_directory) super(name) @is_directory = is_directory end |
Instance Method Details
#children ⇒ Object
17 18 19 |
# File 'lib/dev_suite/directory_tree/node/permission_denied.rb', line 17 def children [] end |
#directory? ⇒ Boolean
13 14 15 |
# File 'lib/dev_suite/directory_tree/node/permission_denied.rb', line 13 def directory? @is_directory end |