Class: Til::Directory
- Inherits:
-
Object
- Object
- Til::Directory
- Defined in:
- lib/til/models/directory.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(subject = nil) ⇒ Directory
constructor
A new instance of Directory.
- #notes ⇒ Object
Constructor Details
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
3 4 5 |
# File 'lib/til/models/directory.rb', line 3 def path @path end |
Class Method Details
.for(subject) ⇒ Object
17 18 19 |
# File 'lib/til/models/directory.rb', line 17 def self.for(subject) self.new(subject) end |
.root ⇒ Object
13 14 15 |
# File 'lib/til/models/directory.rb', line 13 def self.root self.new end |