Class: EacRubyUtils::Fs::Traverser

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#check_directoryObject

Returns the value of attribute check_directory


6
7
8
# File 'lib/eac_ruby_utils/fs/traverser.rb', line 6

def check_directory
  @check_directory
end

#check_fileObject

Returns the value of attribute check_file


6
7
8
# File 'lib/eac_ruby_utils/fs/traverser.rb', line 6

def check_file
  @check_file
end

#hidden_directoriesObject

Returns the value of attribute hidden_directories


6
7
8
# File 'lib/eac_ruby_utils/fs/traverser.rb', line 6

def hidden_directories
  @hidden_directories
end

#recursiveObject

Returns the value of attribute recursive


6
7
8
# File 'lib/eac_ruby_utils/fs/traverser.rb', line 6

def recursive
  @recursive
end

#sortObject

Returns the value of attribute sort


6
7
8
# File 'lib/eac_ruby_utils/fs/traverser.rb', line 6

def sort
  @sort
end

Instance Method Details

#check_path(path) ⇒ Object


8
9
10
11
# File 'lib/eac_ruby_utils/fs/traverser.rb', line 8

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:


13
14
15
# File 'lib/eac_ruby_utils/fs/traverser.rb', line 13

def hidden_directories?
  boolean_value(hidden_directories)
end

#recursive?Boolean

Returns:


17
18
19
# File 'lib/eac_ruby_utils/fs/traverser.rb', line 17

def recursive?
  boolean_value(recursive)
end

#sort?Boolean

Returns:


21
22
23
# File 'lib/eac_ruby_utils/fs/traverser.rb', line 21

def sort?
  boolean_value(sort)
end