Class: Shellject::SaveDirectory
- Inherits:
-
Object
- Object
- Shellject::SaveDirectory
- Defined in:
- lib/shellject/save_directory.rb
Overview
Models the shelljections directory as a repository.
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path) ⇒ SaveDirectory
constructor
A new instance of SaveDirectory.
- #path_for(name) ⇒ Object
Constructor Details
#initialize(path) ⇒ SaveDirectory
Returns a new instance of SaveDirectory.
8 9 10 |
# File 'lib/shellject/save_directory.rb', line 8 def initialize(path) @path = Pathname.new path end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
6 7 8 |
# File 'lib/shellject/save_directory.rb', line 6 def path @path end |
Instance Method Details
#path_for(name) ⇒ Object
12 13 14 |
# File 'lib/shellject/save_directory.rb', line 12 def path_for(name) path.join name end |