Class: RubyYacht::Configuration
- Inherits:
-
Object
- Object
- RubyYacht::Configuration
- Defined in:
- lib/ruby_yacht/dsl/configuration.rb
Overview
This class stores the configuration for the system.
For more information on the configuration DSL, see RubyYacht::Configuration::DSL.
Defined Under Namespace
Classes: DSL
Instance Attribute Summary collapse
-
#projects ⇒ Object
The projects that are part of this system.
Instance Method Summary collapse
-
#clear ⇒ Object
This method erases all the configuration.
-
#initialize ⇒ Configuration
constructor
This initializer creates an empty configuration.
Constructor Details
#initialize ⇒ Configuration
This initializer creates an empty configuration.
9 10 11 |
# File 'lib/ruby_yacht/dsl/configuration.rb', line 9 def initialize self.clear end |
Instance Attribute Details
#projects ⇒ Object
The projects that are part of this system. Each entry is a RubyYacht::Project
20 21 22 |
# File 'lib/ruby_yacht/dsl/configuration.rb', line 20 def projects @projects end |
Instance Method Details
#clear ⇒ Object
This method erases all the configuration.
14 15 16 |
# File 'lib/ruby_yacht/dsl/configuration.rb', line 14 def clear @projects = [] end |