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.
7 8 9 |
# File 'lib/ruby_yacht/dsl/configuration.rb', line 7 def initialize self.clear end |
Instance Attribute Details
#projects ⇒ Object
The projects that are part of this system. Each entry is a RubyYacht::Project
18 19 20 |
# File 'lib/ruby_yacht/dsl/configuration.rb', line 18 def projects @projects end |
Instance Method Details
#clear ⇒ Object
This method erases all the configuration.
12 13 14 |
# File 'lib/ruby_yacht/dsl/configuration.rb', line 12 def clear @projects = [] end |