Class: Auger::Config
- Inherits:
-
Object
- Object
- Auger::Config
- Defined in:
- lib/auger/config.rb
Instance Attribute Summary collapse
-
#projects ⇒ Object
Returns the value of attribute projects.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #project(name, &block) ⇒ Object
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
11 12 13 14 |
# File 'lib/auger/config.rb', line 11 def initialize @projects = [] self end |
Instance Attribute Details
#projects ⇒ Object
Returns the value of attribute projects.
4 5 6 |
# File 'lib/auger/config.rb', line 4 def projects @projects end |
Class Method Details
.load(filename) ⇒ Object
5 6 7 8 9 |
# File 'lib/auger/config.rb', line 5 def self.load(filename) config = new config.instance_eval(File.read(filename), filename) config end |