Class: Aardi::Folder
- Inherits:
-
Object
- Object
- Aardi::Folder
- Defined in:
- lib/aardi/folder.rb
Instance Method Summary collapse
-
#initialize(path) ⇒ Folder
constructor
A new instance of Folder.
- #mtime ⇒ Object
- #render ⇒ Object
Constructor Details
#initialize(path) ⇒ Folder
Returns a new instance of Folder.
5 6 7 8 |
# File 'lib/aardi/folder.rb', line 5 def initialize(path) @path = path @normalized_path = "#{path.sub(/^\./, '')}/" end |
Instance Method Details
#mtime ⇒ Object
10 |
# File 'lib/aardi/folder.rb', line 10 def mtime = children.max_by(&:mtime)&.mtime |