Class: DevSuite::DirectoryTree::Node::PermissionDenied

Inherits:
Base
  • Object
show all
Defined in:
lib/dev_suite/directory_tree/node/permission_denied.rb

Instance Attribute Summary

Attributes inherited from Base

#name

Instance Method Summary collapse

Methods inherited from Base

#file?, #hidden?

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

#childrenObject



17
18
19
# File 'lib/dev_suite/directory_tree/node/permission_denied.rb', line 17

def children
  []
end

#directory?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/dev_suite/directory_tree/node/permission_denied.rb', line 13

def directory?
  @is_directory
end