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.
7 8 9 |
# File 'lib/souyuz/msbuild/solution.rb', line 7 def initialize @projects = [] end |
Instance Attribute Details
#projects ⇒ Object
Returns the value of attribute projects.
5 6 7 |
# File 'lib/souyuz/msbuild/solution.rb', line 5 def projects @projects end |
Instance Method Details
#add_project(project) ⇒ Object
11 12 13 |
# File 'lib/souyuz/msbuild/solution.rb', line 11 def add_project(project) @projects << project end |
#get_platform(platform) ⇒ Object
15 16 17 |
# File 'lib/souyuz/msbuild/solution.rb', line 15 def get_platform(platform) @projects.select { |p| p.is_platform? platform } end |