Class: Shellject::SaveDirectory

Inherits:
Object
  • Object
show all
Defined in:
lib/shellject/save_directory.rb

Overview

Models the shelljections directory as a repository.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#pathObject (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