Class: ProjectGroup::GroupWrapper
- Inherits:
-
DSLWrapper
- Object
- DSLWrapper
- ProjectGroup::GroupWrapper
- Defined in:
- lib/project_group/config.rb
Instance Attribute Summary collapse
-
#configs ⇒ Object
Returns the value of attribute configs.
-
#local ⇒ Object
Returns the value of attribute local.
Attributes inherited from DSLWrapper
Instance Method Summary collapse
Methods inherited from DSLWrapper
Constructor Details
This class inherits a constructor from ProjectGroup::DSLWrapper
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ProjectGroup::DSLWrapper
Instance Attribute Details
#configs ⇒ Object
Returns the value of attribute configs.
19 20 21 |
# File 'lib/project_group/config.rb', line 19 def configs @configs end |
#local ⇒ Object
Returns the value of attribute local.
20 21 22 |
# File 'lib/project_group/config.rb', line 20 def local @local end |
Instance Method Details
#name(name) ⇒ Object
37 38 |
# File 'lib/project_group/config.rb', line 37 def name(name) end |
#project(name, &b) ⇒ Object
31 32 33 34 35 36 |
# File 'lib/project_group/config.rb', line 31 def project(name,&b) self.project_names << name if block_given? configs.project(name,&b) end end |
#singles ⇒ Object
22 23 24 25 26 |
# File 'lib/project_group/config.rb', line 22 def singles project_names.map do |name| configs.projects.find { |x| x.name == name } end end |