Class: Harrison::Config
- Inherits:
-
Object
- Object
- Harrison::Config
- Defined in:
- lib/harrison/config.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(opts = {}) ⇒ Config
Returns a new instance of Config.
3 4 5 6 7 |
# File 'lib/harrison/config.rb', line 3 def initialize(opts={}) self.class.config_keys.each do |key| self.class.send(:attr_accessor, key) end end |
Class Method Details
.config_keys ⇒ Object
9 10 11 12 13 14 |
# File 'lib/harrison/config.rb', line 9 def self.config_keys [ :project, :git_src, ] end |