Class: Panda::SolutionRepository
- Inherits:
-
Object
- Object
- Panda::SolutionRepository
- Defined in:
- lib/panda/solution_repository.rb
Constant Summary collapse
- NAME =
1- RELATIVE_PATH =
2- ID =
3
Instance Attribute Summary collapse
-
#solution_path ⇒ Object
Returns the value of attribute solution_path.
Instance Method Summary collapse
- #all ⇒ Object
-
#initialize(filename) ⇒ SolutionRepository
constructor
A new instance of SolutionRepository.
Constructor Details
#initialize(filename) ⇒ SolutionRepository
Returns a new instance of SolutionRepository.
12 13 14 15 16 17 |
# File 'lib/panda/solution_repository.rb', line 12 def initialize(filename) raise "file not found: " + filename unless File.exist? filename @solution_path = filename end |
Instance Attribute Details
#solution_path ⇒ Object
Returns the value of attribute solution_path.
10 11 12 |
# File 'lib/panda/solution_repository.rb', line 10 def solution_path @solution_path end |
Instance Method Details
#all ⇒ Object
19 20 21 22 23 |
# File 'lib/panda/solution_repository.rb', line 19 def all get_projects(@solution_path) end |