Class: Souyuz::Msbuild::Solution
- Inherits:
-
Object
- Object
- Souyuz::Msbuild::Solution
- Defined in:
- lib/souyuz/msbuild/solution.rb
Instance Attribute Summary collapse
-
#projects ⇒ Object
Returns the value of attribute projects.
Instance Method Summary collapse
- #add_project(project) ⇒ Object
- #get_platform(platform) ⇒ Object
-
#initialize ⇒ Solution
constructor
A new instance of Solution.
Constructor Details
#initialize ⇒ Solution
Returns a new instance of Solution.
6 7 8 |
# File 'lib/souyuz/msbuild/solution.rb', line 6 def initialize @projects = [] end |
Instance Attribute Details
#projects ⇒ Object
Returns the value of attribute projects.
4 5 6 |
# File 'lib/souyuz/msbuild/solution.rb', line 4 def projects @projects end |
Instance Method Details
#add_project(project) ⇒ Object
10 11 12 |
# File 'lib/souyuz/msbuild/solution.rb', line 10 def add_project(project) @projects << project end |
#get_platform(platform) ⇒ Object
14 15 16 |
# File 'lib/souyuz/msbuild/solution.rb', line 14 def get_platform(platform) @projects.select { |p| p.is_platform? platform } end |