Class: Soul::Solution
- Inherits:
-
Object
- Object
- Soul::Solution
- Defined in:
- lib/soul/solution.rb
Instance Attribute Summary collapse
-
#projects ⇒ Object
Returns the value of attribute projects.
Instance Method Summary collapse
- #add_project(project) ⇒ Object
-
#initialize ⇒ Solution
constructor
A new instance of Solution.
Constructor Details
#initialize ⇒ Solution
Returns a new instance of Solution.
5 6 7 |
# File 'lib/soul/solution.rb', line 5 def initialize @projects = [] end |
Instance Attribute Details
#projects ⇒ Object
Returns the value of attribute projects.
3 4 5 |
# File 'lib/soul/solution.rb', line 3 def projects @projects end |
Instance Method Details
#add_project(project) ⇒ Object
9 10 11 |
# File 'lib/soul/solution.rb', line 9 def add_project(project) @projects << project end |