Class: EacRubyUtils::FilesystemTraverser

Inherits:
Object
  • Object
show all
Defined in:
lib/eac_ruby_utils/filesystem_traverser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#check_directoryObject

Returns the value of attribute check_directory.



5
6
7
# File 'lib/eac_ruby_utils/filesystem_traverser.rb', line 5

def check_directory
  @check_directory
end

#check_fileObject

Returns the value of attribute check_file.



5
6
7
# File 'lib/eac_ruby_utils/filesystem_traverser.rb', line 5

def check_file
  @check_file
end

#hidden_directoriesObject

Returns the value of attribute hidden_directories.



5
6
7
# File 'lib/eac_ruby_utils/filesystem_traverser.rb', line 5

def hidden_directories
  @hidden_directories
end

#recursiveObject

Returns the value of attribute recursive.



5
6
7
# File 'lib/eac_ruby_utils/filesystem_traverser.rb', line 5

def recursive
  @recursive
end

Instance Method Details

#check_path(path) ⇒ Object



7
8
9
10
# File 'lib/eac_ruby_utils/filesystem_traverser.rb', line 7

def check_path(path)
  path = ::Pathname.new(path.to_s) unless path.is_a?(::Pathname)
  internal_check_path(path, 0)
end

#hidden_directories?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/eac_ruby_utils/filesystem_traverser.rb', line 12

def hidden_directories?
  hidden_directories ? true : false
end

#recursive?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/eac_ruby_utils/filesystem_traverser.rb', line 16

def recursive?
  recursive ? true : false
end