Class: Delfos::FileSystem::Relation::RelatedPaths
- Inherits:
-
Object
- Object
- Delfos::FileSystem::Relation::RelatedPaths
- Defined in:
- lib/delfos/file_system/relation.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #directories ⇒ Object
- #files ⇒ Object
-
#initialize(path) ⇒ RelatedPaths
constructor
A new instance of RelatedPaths.
Constructor Details
#initialize(path) ⇒ RelatedPaths
Returns a new instance of RelatedPaths.
89 90 91 |
# File 'lib/delfos/file_system/relation.rb', line 89 def initialize(path) @path = path end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
87 88 89 |
# File 'lib/delfos/file_system/relation.rb', line 87 def path @path end |
Instance Method Details
#directories ⇒ Object
97 98 99 |
# File 'lib/delfos/file_system/relation.rb', line 97 def directories all.select(&:directory?) end |
#files ⇒ Object
93 94 95 |
# File 'lib/delfos/file_system/relation.rb', line 93 def files all.select(&:file?) end |