Class: EacRubyUtils::FilesystemTraverser
- Defined in:
- lib/eac_ruby_utils/filesystem_traverser.rb
Instance Attribute Summary collapse
-
#check_directory ⇒ Object
Returns the value of attribute check_directory.
-
#check_file ⇒ Object
Returns the value of attribute check_file.
-
#hidden_directories ⇒ Object
Returns the value of attribute hidden_directories.
-
#recursive ⇒ Object
Returns the value of attribute recursive.
Instance Method Summary collapse
Instance Attribute Details
#check_directory ⇒ Object
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_file ⇒ Object
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_directories ⇒ Object
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 |
#recursive ⇒ Object
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
12 13 14 |
# File 'lib/eac_ruby_utils/filesystem_traverser.rb', line 12 def hidden_directories? hidden_directories ? true : false end |
#recursive? ⇒ Boolean
16 17 18 |
# File 'lib/eac_ruby_utils/filesystem_traverser.rb', line 16 def recursive? recursive ? true : false end |