Class: Panda::SolutionRepository

Inherits:
Object
  • Object
show all
Defined in:
lib/panda/solution_repository.rb

Constant Summary collapse

NAME =
1
RELATIVE_PATH =
2
ID =
3

Instance Attribute Summary collapse

Instance Method Summary collapse

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_pathObject

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

#allObject



19
20
21
22
23
# File 'lib/panda/solution_repository.rb', line 19

def all

  get_projects(@solution_path)

end